[ZODB-Dev] _p_oid

Christian Theune ct at gocept.com
Wed Apr 1 12:45:18 EDT 2009


On Wed, 2009-04-01 at 18:28 +0200, Adam GROSZER wrote:
> Hello,
> 
> Does anyone know how _p_oid is generated?
> 
> I'm asking because we would like to use _p_oid as a unique key to
> store BLOB-like files on the filesystem.
> Of course more threads/processes/machines are in the picture.
> So the question is once an object gets a _p_oid assigned, is it
> guaranteed to be unique over all instances accessing the same DB?

Yes.

-- 
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/20090401/90a34ff6/attachment.bin 


More information about the ZODB-Dev mailing list