Google Groups Home
Help | Sign in
Message from discussion creating unique numeric IDs in datastore (sample code)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
vrypan  
View profile
 More options Apr 27, 2:10 am
From: vrypan <vry...@gmail.com>
Date: Sat, 26 Apr 2008 23:10:53 -0700 (PDT)
Local: Sun, Apr 27 2008 2:10 am
Subject: creating unique numeric IDs in datastore (sample code)
I wrote some code to implement the equivalent of a "unique
auto_increment index" in datastore (or better, to overcome the lack of
it).

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
out any mistakes or performance considerations!


    Reply to author    Forward  
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.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google