On Thu, Aug 13, 2009 at 2:01 PM, Shane Hathaway<sh...@hathawaymix.org> wrote:
> 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.

Yup.  Note that technically, IODs can be any string, however lots of
tools assume they are 8-byte strings, which gives plenty of room for
wastage when allocating them.

Jim

-- 
Jim Fulton
_______________________________________________
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

Reply via email to