[ZODB-Dev] increasing order of oids?

Jim Fulton jim at zope.com
Thu Aug 13 15:20:52 EDT 2009


On Thu, Aug 13, 2009 at 2:01 PM, Shane Hathaway<shane at 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


More information about the ZODB-Dev mailing list