[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 07:23:43 EDT 2009


On Sep 14, 2009, at 13:10 , Chris Withers 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?
>
>> In Zope 2, you could export the folder and look at the size of the  
>> export.
>
> 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?

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/841211bb/attachment.bin 


More information about the ZODB-Dev mailing list