2008/11/10 syahreza.octadian <syahreza...@gmail.com>:
If so see:
http://code.google.com/appengine/docs/datastore/keysandentitygroups.html
but note "An application should not rely on numeric IDs being assigned
in increasing order with the order of entity creation. This is
generally the case, but not guaranteed."
as mentioned if you want an exact numberical order then you will need
to make it yourself, and will need a counter. But you must be very
careful to ensure consistancy, it would be very easy for a counter to
get out of sync with a high insert rate.
So unless you really need strict sequencial number I would recommend
using what is provided by the datastore.
--
Barry