[ZODB-Dev] Is there any convenient way to reduce the storage file size after delete something in database?

Jim Fulton jim at zope.com
Tue Sep 27 05:51:56 EST 2011


On Tue, Sep 27, 2011 at 4:23 AM, 刘一新 <liuyxpp at gmail.com> wrote:
> I found that the size of the storage file (test.fs for example) does not
> change when I remove some or all object from it.
> To empty test.fs, I recreate it.
> But If I want to only remove some object in test.fs, I must do following:
>    1. zeopack the database
>    2. rm -f test.fs.old
> Am I right?
> BTW, what does the zeopack exactly do? And when should I use it? I try to
> find some instructions on it but without success.

In addition to Vincent's remarks, I'll also note that FileStorage has
an option to keep old (unpacked) files. If set to False, the old file
will be automatically removed.

Jim

-- 
Jim Fulton
http://www.linkedin.com/in/jimfulton


More information about the ZODB-Dev mailing list