[ZODB-Dev] Utility to strip version records from storages
Christian Theune
ct at gocept.com
Sat Aug 15 04:33:00 EDT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 08/14/2009 09:23 PM, Jim Fulton wrote:
> I'm working on a utility to strip version records from storages. I
> plan to release it in a "bug fix" 3.8 release, probably 3.8.3.
>
> It will have some limitations:
>
> - It will only convert storages that have an iterator method. I
> suspect that FileStorages are the only storages that have iterator
> methods in 3.8 and sooner. (Maybe RelStorages do too.)
>
> - It won't give blob records any special treatment. I think it's very
> unlikely that there will be databases that have both version record
> and blobs. In any case, it should be possible to copy a blob
> directory separately after copying the database records. If someone
> was insane enough to have blobs in versions, then the database records
> will be stripped but the associated blob files will be left. This is
> so unlikely that I don't intend to spend time dealing with this
> possibility.
Hmm. I guess that those would vanish automatically after packing that
database...
- --
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkqGcrwACgkQdUt9X/gknwK7hQCgnXnfg6mt6lpInlyZvx1FGXWS
3OcAn00QEUcpEeOLf8Rg1lTAySbvepQI
=B8+A
-----END PGP SIGNATURE-----
More information about the ZODB-Dev
mailing list