[ZODB-Dev] increasing order of oids?

2009-08-13 Thread Jürgen Herrmann
hi there!

is there a strict requirement for oids to be increasing? having read
a ton of code my head is not so sure anymore, though i can't remember
seeing a requirement for such anywhere in the code.

if RadosStorage could pre-allocate oids in batches of thousands, that
would probably give me a big performance win, or to put it the other
way round: rados is not designed to be used for such time-critical and
at the same time completely synced operations. and getting new oids
will happen often...

best regards,
jürgen
--
 XLhost.de - eXperts in Linux hosting ® 

XLhost.de GmbH
Jürgen Herrmann, Geschäftsführer
Boelckestrasse 21, 93051 Regensburg, Germany

Geschäftsführer: Volker Geith, Jürgen Herrmann
Registriert unter: HRB9918
Umsatzsteuer-Identifikationsnummer: DE245931218

Fon:  +49 (0)800 XLHOSTDE [0800 95467833]
Fax:  +49 (0)800 95467830

WEB:  http://www.XLhost.de
IRC:  #xlh...@irc.quakenet.org

___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] increasing order of oids?

2009-08-13 Thread Shane Hathaway
Jürgen Herrmann wrote:
 is there a strict requirement for oids to be increasing?

No, but obviously there is a strict requirement that new_oid() return 
unique OIDs.

 if RadosStorage could pre-allocate oids in batches of thousands, that
 would probably give me a big performance win, or to put it the other
 way round: rados is not designed to be used for such time-critical and
 at the same time completely synced operations. and getting new oids
 will happen often...

ZEO also allocates OIDs in large batches, I believe.

Shane
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev