Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion creating unique numeric IDs in datastore (sample code)

MIME-Version: 1.0
Message-ID: <f9d25a3f-eb89-4744-a390-4a9ecd134540@w7g2000hsa.googlegroups.com>
Date: Tue, 29 Apr 2008 09:32:04 -0700 (PDT)
Received: by 10.101.69.10 with SMTP id w10mr917917ank.24.1209486724860; Tue, 
	29 Apr 2008 09:32:04 -0700 (PDT)
In-Reply-To: <b1964077-3ca6-422e-b725-e5d521398bd1@e39g2000hsf.googlegroups.com>
X-IP: 72.196.236.112
References: <c773b27a-8ad5-4615-be15-a19428bb6f2e@24g2000hsh.googlegroups.com> 
	<3f9f721f-8664-48ee-961c-7c981d37c841@q1g2000prf.googlegroups.com> 
	<c8a5a33f-550f-4adf-bbe8-3c0930eb7656@24g2000hsh.googlegroups.com> 
	<45fc663c0804281235u654229bpd6ed239d83dd7015@mail.gmail.com> 
	<c9b1a5cb-386b-478a-b857-abeb4114adbc@s50g2000hsb.googlegroups.com> 
	<07f1cd8b-9c15-4296-ad1d-bf5c1588d713@x41g2000hsb.googlegroups.com> 
	<b1964077-3ca6-422e-b725-e5d521398bd1@e39g2000hsf.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
	CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 
	2.0.50727),gzip(gfe),gzip(gfe)
Subject: Re: creating unique numeric IDs in datastore (sample code)
From: Ben the Indefatigable <bcbry...@gmail.com>
To: Google App Engine <google-appengine@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

In this post Marce of google describes a mechanism for generating a
real number ID used to select a random record, and avoid a "uniformly
incrementing counter." Which goes to show that if you use your
imagination you may find a satisfactory alternative to the sequence
number/counter problem, depending on your situation.