[ZODB-Dev] How do I find out the size of a subtree of the object graph?
Jens Vagelpohl
jens at dataflake.org
Mon Sep 14 08:07:32 EDT 2009
On Sep 14, 2009, at 13:27 , Chris Withers wrote:
> Jens Vagelpohl wrote:
>>> Sadly, when you're trying to figure out which folder is using all
>>> the
>>> space on a disk that's running out of space, that's not practical...
>> How about simply writing a script that crawls the ZODB and gives
>> you paths and sizes?
>
> Indeed, and what's the magic incantation to get the size of the
> object as it is on disk?
There is none that I know. I would simply look at the data items I
know from the object in the ZODB. Like, I know how OFS.Image and
OFS.File save their data and can determine the size that way. You
would have to have knowledge about each type of object encountered.
jens
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4763 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20090914/b8a9b020/attachment.bin
More information about the ZODB-Dev
mailing list