[Zope] Re: CMFExternalFile and huge ZODB pickles

Chris Withers chris at simplistix.co.uk
Fri Feb 24 15:52:09 EST 2006


Pawel Lewicki wrote:

> Class Name                   Count    TBytes    Pct AvgSize
> -------------------------- ------- ---------  ----- -------
> ...
> OFS.Folder.Folder             2731 7177565156  95.4% 2628182.04
> 
> The only reference to folder I have is: 
> folder.manage_addProduct['ExternalFile'].addExternalFile(filename, 
> '',                          '',filepath, '',file)

Well yes, you're adding an external file to the folder. That changes the 
folder, so a new copy of it will get written to the ZODB, hence the 
growth you're seeing.

try using a BTreeFolder2 or similar for whatever 'folder' is...

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the Zope mailing list