[appengine-java] Re: regarding the keys in the datastore

2010-07-03 Thread Jaroslav Záruba
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

[appengine-java] Re: regarding the keys in the datastore

2010-07-04 Thread Vaclav Bartacek
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

[appengine-java] Re: regarding the keys in the datastore

2010-07-04 Thread Didier Durand
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,

Re: [appengine-java] Re: regarding the keys in the datastore

2010-07-28 Thread Deepika M
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