From: "Brett Morgan" <brett.mor...@gmail.com>
Date: Tue, 29 Apr 2008 20:07:02 +1000
Local: Tues, Apr 29 2008 6:07 am
Subject: Re: [google-appengine] Re: creating unique numeric IDs in datastore (sample code)
Let me get this straight in my head. You are creating an object,
stuffing it into the database, remembering it's key and then deleting it? So, what is the advantage over doing this in the class that you wanted On Tue, Apr 29, 2008 at 6:38 PM, picke...@gmail.com <picke...@gmail.com> wrote: -- > class Sequence(db.Model): > i'm using it in my gap application, and it seems ok. > On Apr 28, 10:37 pm, Mahmoud <mahmoud.ar...@gmail.com> wrote: > > The datastore already generates a globally _unique_ key for each > > As for record/entity counts, numerous posts have suggested storing the > > -Mahmoud > > On Apr 27, 2:10 am, vrypan <vry...@gmail.com> wrote: > > > I wrote some code to implement the equivalent of a "unique > > > You can find the code here:http://vrypan.net/log/2008/04/27/unique-integer-ids-in-google-datastore/ > > > It looks like it's working, but I'm a Python newbie, so please point Brett Morgan http://brett.morgan.googlepages.com/ You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||