> 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)" <nick.john...@google.com> 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 <robi...@gmail.com> 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 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 -~----------~----~----~----~------~----~------~--~---