[ZODB-Dev] create unique container keys

Christian Theune ct at gocept.com
Thu Apr 2 04:47:07 EDT 2009


On Thu, 2009-04-02 at 10:19 +0200, Adam GROSZER wrote:
> Hello,
> 
> What's a good practice to create unique container keys for a heavily
> loaded application? (I mean lots of writes to the same container)
> Obviously having a counter on the container and incrementing and using
> that for key gives write conflicts.
> 
> What do the experts use?

If uniqueness is your only concern then using a large number range and
consuming numbers randomly will perform better than incrementing.

Christian

-- 
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1
Zope and Plone consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20090402/dd4848af/attachment.bin 


More information about the ZODB-Dev mailing list