If you want to get your data in the order it was inserted, it's almost
certainly easier to use a DatetimeProperty with auto_now_add = True
than to try to maintain your own guaranteed sequential IDs.

On Jul 16, 12:07 pm, Blixt <andreasbl...@gmail.com> wrote:
> Okay, so data will be returned in a non-determinate order unless you
> specify keys yourself (since ids aren't guaranteed to be in order).
> I'll make my own counter.
>
> Thanks!
>
> On Jul 16, 6:01 pm, Nate Bauernfeind <nate.bauernfe...@gmail.com>
> wrote:
>
> > They will be ordered by key. You should consider watching one of the
> > datastore tech talks.
>
> > On Fri, Jul 16, 2010 at 3:54 AM, Blixt <andreasbl...@gmail.com> wrote:
> > > Imagine this query:
>
> > > Person.all().fetch(100)
>
> > > Is the order of data in the datastore guaranteed, or can the order of
> > > the entities returned change as data is inserted?
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google App Engine" group.
> > > To post to this group, send email to google-appeng...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-appengine+unsubscr...@googlegroups.com<google-appengine%2Bunsubscrib
> > >  e...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to