On Mon, Sep 14, 2009 at 10:43 AM, David Glick <davidgl...@onenw.org> wrote:
> On Sep 14, 2009, at 7:04 AM, Jim Fulton wrote:
>> On Mon, Sep 14, 2009 at 7:10 AM, Chris Withers <ch...@simplistix.co.uk>
>>> Jim Fulton wrote:
>>>> ZODB doesn't provide any direct support because it has no notion of
>>> 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, ''))+42
> What's the extra 42 for? Aside from life, the universe, and everything...
Database record header. There's also space for transaction meta data,
but that's amorized over an unknown number of records.
For more information about ZODB, see the ZODB Wiki:
ZODB-Dev mailing list - ZODB-Dev@zope.org