My guess is that this is to prevent collisions (or reduce the chances)
when two or more JVMs / datastore servers are auto-assigning the keys.
On Jul 3, 9:58 pm, Deepika M wrote:
> Hi,
>
> I have a question about the keys in the datastore.
>
> The keys are in sorted order when I view in the local
The datastore is DISTRIBITED and that's why.
You can assign keys manually using low-level datastore API - methods
allocateIds(..) of the class DatastoreService:
http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/DatastoreService.html
Vaclav
On Jul 3, 9:58 pm, D
Hi,
You can also create your own keys (i.e. with the structure you want)
via KeyFactory.createKey()
regards
didier
On Jul 3, 9:58 pm, Deepika M wrote:
> Hi,
>
> I have a question about the keys in the datastore.
>
> The keys are in sorted order when I view in the local datastore. For
> example,
Thank you all for the replies!
On Sun, Jul 4, 2010 at 10:49 PM, Didier Durand wrote:
> Hi,
>
> You can also create your own keys (i.e. with the structure you want)
> via KeyFactory.createKey()
> regards
> didier
>
> On Jul 3, 9:58 pm, Deepika M wrote:
> > Hi,
> >
> > I have a question about the