> Can we ever experience inserting a record that will
> have a lower ID than the previous?

Yes.

"An application should not rely on numeric IDs being assigned in
increasing order with the order of entity creation. This is generally
the case, but not guaranteed."

from 
http://code.google.com/appengine/docs/datastore/keysandentitygroups.html#Paths_and_Key_Uniqueness

On Dec 20, 11:14 pm, Thomas Johansson <prenc...@gmail.com> wrote:
> Hi ryan,
>
> Is this to be interpreted as getting the following, in order, more or
> less? (where the ID/Key is in square brackets)
>
> /Image[42]
> /Image[127841]
>
> /Thread[10]/Post[42]
> /Thread[10]/Post[127841]
>
> E.g. the ID is ever increasing, but only for the current fully
> qualified path? Can we ever experience inserting a record that will
> have a lower ID than the previous?
>
> Thanks,
> Thomas
>
> On Dec 21, 6:13 am, ryan <ryanb+appeng...@google.com> wrote:
>
>
>
> > On Dec 20, 7:09 pm, jeremy <jeremy.a...@gmail.com> wrote:
>
> > > are numeric ids of deleted entities reused? i really hope not.
>
> > good question. no, they're not.
>
> > you're probably already on top of this, but just for the record, ids
> > themselves aren't unique across entities. only an entity's full path
> > is guaranteed to be unique. ids and key names are only guaranteed to
> > be unique among entities of the same kind that have the same parent
> > (or that are root entities). more 
> > inhttp://code.google.com/appengine/docs/datastore/keysandentitygroups.h...
> > .- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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-appengine@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