If I understand correctly, I think the likelihood of the same id being chosen is very low; that said, I think the generateId() method is also designed to reduce likelihood of conflict errors (though not entirely eliminate) by having each thread or ZEO client likely writing to different buckets (thanks to random initial id per thread, plus sequential behavior afterward for so many ids). Old message from ZODB-Dev that might be useful (this is pre-BTreeFolder2, but I think we are discussing the same thing). http://mail.zope.org/pipermail/zodb-dev/2001-December/002046.html Sean -----Original Message----- From: Ruslan Spivak [mailto:alienoid@is.lg.ua] Sent: Tuesday, February 11, 2003 2:34 PM To: zope@zope.org Subject: [Zope] BTreeFolder2 question Hello, zope users! BTreeFolder2 has generateId method, what will be if two or more zeo clients try to to write to the same folder at the same time, will be uniqueness of ids guaranted? Thanks in advance _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (1)
-
sean.upton@uniontrib.com