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

Andreas Jung lists at zopyx.com
Tue Sep 27 03:55:39 EST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The ZODB basically does only append to the database file (Data.fs).
Only packing (e.g. through zeopack) will write a new (and smaller)
Data.fs file containing the referenced "life" objects.

- -aj

刘一新 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.
> 
> Thanks!
> 
> -- /Dr. Yi-Xin Liu/ /Department of Macromolecular Science/ /Fudan
> University/ /Room 415, Yuejing Building / /Handan Rd. 220,
> //Shanghai, China/ /Tel +86-021-65642863/ /Mobile +86-13916819745/ 
> http://www.mendeley.com/profiles/yi-xin-liu/
> 
> _______________________________________________ For more information
> about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/
> 
> ZODB-Dev mailing list  -  ZODB-Dev at zope.org 
> https://mail.zope.org/mailman/listinfo/zodb-dev

- -- 
ZOPYX Limited           | zopyx group
Charlottenstr. 37/1     | The full-service network for Zope & Plone
D-72070 Tübingen        | Produce & Publish
www.zopyx.com           | www.produce-and-publish.com
- ------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJOgY+LAAoJEADcfz7u4AZj4VELviQVWvCV6wkfMPYFAmA3UihK
Sj8LDrGPc76/tCRKzCP7Ska0Wtc+Sug4hs+0NPjVbKyeAtZI0e0MvbFw2ihZwkqw
KvTJjcLUuscOdBtpPxZzCdmSsmnE25tv/S+JhCmuq3yhs0QKvb562jDP4DwPTMvP
r5noWq+R5pd1wo9a2aZ1qD+2pjchgjBIk/AVWGH2cg+BlqtOvjVTr1zWHihJ1FQU
N/CpAJJfB31axQHrrF1zBeO6ya8GMkJkUto9+qbxHK2Bnz6k64L5OAZj4xzGgKLW
PVJxltK3Eso6Wqh4vb55TFKVuKAel6M0TSGK6R7QOxp1ln8qE0xiLPzpE+D6aYKV
bHChCKNfQUGpG7A+4pNHiPxvkmfXszj0LkQcsw7Ca9DJLfGwrdVQFKiBQH9oyeLk
pw6IIYmdnhd0Gu6JeIvTqmch/Eov9vHK6C14aEWae4DINkAceT9mW9+XRZrWMF3l
2S9lUMOdoHtGYQgekpEfBi22+ISNIIw=
=Qm+y
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 324 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20110927/226fbdee/attachment.vcf 


More information about the ZODB-Dev mailing list