Hi all,

I have two questions to the Google Team, regarding autogenerated ids:

- Is an autogenerated id sequence common across all namespaces? (i.e. if I
allocate an id in namespace A, will it be also allocated in every other
namespace)

- Is it a stable assumption (as in "it won't change in the future")?


My use case:

I want to clone entities from a namespace A to an empty namespace B, in
order to create a new 'instance' of my application with initial data. Once
filled, the namespace B will then have to store additional entities of its
own, with autogenerated ids.

To this day, I managed to correctly copy the entities. They keep the same
numerical ID in order to keep ReferenceProperties valid. Only the namespace
part of the key differs from the old cloned entity to the new clone entity.

So, I want to be sure the new clone entities won't be overwritten, by
entities whose autogenerated id would be the same. Hence my question: if
autogenerated id sequences are shared across namespaces, new clone entities
cannot be overwritten later by a conflicting generated id, and my data is
safe.


Thanks,
-- 
Laurent d'Escrivan

-- 
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