[google-appengine] Re: Are Allocated IDs for child entities guaranteed to be unique?

2019-05-27 Thread 'George (Cloud Platform Support)' via Google App Engine
The solution described in the stackoverflow reply you link to should work well. This has been already confirmed by Sam in his posting above. This discussion group is oriented more towards general opinions, trends, and issues of general nature touching App Engine and Datastore. For coding and pr

[google-appengine] Re: Are Allocated IDs for child entities guaranteed to be unique?

2019-05-22 Thread dir Ls
Thank you Sam for the response. I am always using the AllocateIDs API as documented in the client library (not the appengine api). https://godoc.org/cloud.google.com/go/datastore#Client.AllocateIDs Say I have two users, with Keys (User,1) and (User,2). If I do the following key1s := []*datastor

[google-appengine] Re: Are Allocated IDs for child entities guaranteed to be unique?

2019-05-22 Thread 'Sam (Google Cloud Support)' via Google App Engine
Hi, each System-allocated ID values are guaranteed unique to the entity group. As our docs state here [1]: "Each entity in a Datastore mode database has a key that uniquely identifies it." If you copy an entity from one entity group or namespace to another and wish to preserve the ID part of th