> IDs are unique per kind and per parent, not global.

So for example:

post = Post(parent=None, title='foo').put()
post.put()
comment = Comment(parent=None, message='bar').put()
comment.put()

Then post.key().id()  and comment.key().id() could potentially be
equal because they are not global across kinds even when parent=None ?

Thanks,

Robin

On Sep 11, 4:11 am, "Nick Johnson (Google)" <[email protected]>
wrote:
> Hi Robin,
> IDs are unique per kind and per parent, not global.
>
> -Nick Johnson
>
> On Fri, Sep 11, 2009 at 8:39 AM, Robin B <[email protected]> wrote:
>
> > I noticed that unique auto ids seem to span across kinds.  Is there
> > any trick to getting unique auto ids per kind?
>
> > Thanks,
>
> > Robin
>
> --
> Nick Johnson, Developer Programs Engineer, App Engine
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to