Key isn't automatic plus 1 when you put a entity.Sometimes it will add 1000 (or some other value), and then back to the ordinary value.
You can check the document about entity's id. 2009/4/18 David Wilson <[email protected]> > > > > Hi, > > Our myspace application is now running live with an app engine back > end, but im seeing a few out of order comment and event lists. > > I've tracked the issue to the fact were using a sort on _key_ to order > the data by date, > > But new data being put into the datastore does not seem to be given id > values that are larger then the data that is already in there (same > Model). > > ie: > > ID:6143 Date:2009-04-18 04:53:16.961484 > ID:10009 Date:2009-04-18 00:29:37.483112 > > Is this expected behaviour? and thus do i need to always give a > key_name to guarantee order? this creates scaling issues for order > counter (which is probably why its not in order in the backend :) ) > > > Thanks > > David. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
