Skip to content Skip to sidebar Skip to footer

Ever See Duplicate Ids When Using Google App Engine And Ndb?

class Entries(ndb.Model): description = ndb.StringProperty() seqid = ndb.IntegerProperty() link = ndb.StringProperty() group = ndb.StringProperty() timestamp = ndb.Strin

Solution 1:

A datastore's unique key is the fully qualified key, including all parent entity keys, not just the ID. Multiple entities with the same ID and different parents are completely valid, and you shouldn't rely on the id alone being unique.


Post a Comment for "Ever See Duplicate Ids When Using Google App Engine And Ndb?"