On Mon, Sep 14, 2009 at 7:10 AM, Chris Withers <ch...@simplistix.co.uk> wrote:
> Jim Fulton wrote:
>>
>> ZODB doesn't provide any direct support because it has no notion of tree.
>
> Does it have any notion of object size on disk for a given object?

Not directly, but you can do:

  len(ob._p_jar.db().storage.load(ob._p_oid, '')[0])+42

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
https://mail.zope.org/mailman/listinfo/zodb-dev

Reply via email to