It seems like such an easy goal: autoincremental integers for a
container. Is this such a problem because of the ZODB architecture?
or lack there of? There are two database primitives that everyone
appears to want:
- autoincrementing integers for containers (tables)
- indexes (not in application)
The new generation of databases (couchdb, tokyo cabinet, hypertable,
etc) autoincrementing is usually absent. Though these data containers
usually have index support.
On Thu, Apr 2, 2009 at 7:48 AM, Stephan Richter
> On Thursday 02 April 2009, Adam GROSZER wrote:
>> Yeah, uuid was my guess.
> Christian was not necessarily thinking uuid. I think the common algorithm is:
> x = random.randint(10**9)
> while str(x) in container:
> x += 1
> Stephan Richter
> Web Software Design, Development and Training
> Google me. "Zope Stephan Richter"
> For more information about ZODB, see the ZODB Wiki:
> ZODB-Dev mailing list - zodb-...@zope.org
Enfold Systems, Inc.
For more information about ZODB, see the ZODB Wiki:
ZODB-Dev mailing list - ZODB-Dev@zope.org