App Engine Version 1.7.6 old_dev_appserver.py Model.key().id() not returning the correct id -


I'm unable to get the new dev_appserver to work. When I roll back to old_dev_appserver , my application is having trouble getting data from datastore because model.key (). Id () does not return correct id .

Nobody knows what I am doing wrong?

Example:

When the datestore _ah / admin can be seen in institutions and id of 5764607523034234880 but calling entitiy_instance.key (). ID () 5188146770730811000

Model.get_by_id (entity.key ()) ID ()) Returns None I Believe That this unit should be returned.

1.7.6 has changed the default ID allocation till sequential scattered, resulting in such large ID The number and the problems faced by you have to face. There is one to fix this problem.

Meanwhile, my suggestion for local development is to manually set back to the ID assignment sequential, as described (specifying Automatic ID Allocation Policy)

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -