[ZODB-Dev] Unique Object ID

Christian Reis kiko at async.com.br
Mon Jun 9 18:11:29 EDT 2003


On Wed, Jun 04, 2003 at 11:32:37PM -0400, Casey Duncan wrote:
> Actually Catalog uses a combination of random and sequencial ids. That way if 
> many objects are added at once, they tend to cluster in the BTree data 
> structure minimizing the number of nodes and buckets that need to be touched. 
> Have a look at the catalogObject method of Catalog.py in the Zope head.

So something like time.time() + random would cluster better in our case?

Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL



More information about the ZODB-Dev mailing list