When you say "auto increment" - do you really mean 'unique primary key'?
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. On Mon, Nov 10, 2008 at 4:20 AM, syahreza.octadian <[EMAIL PROTECTED]> wrote: > > Dear all, > > I'm new with google app engine, now i'm try to build simple task > management with this. But i have some of problem with datastore, i > don't have any idea to create auto increment in data store. > > > > Thank for any suggestion.... > Syahreza Octadian > > > > -- Barry - www.nearby.org.uk - www.geograph.org.uk - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
