[ZODB-Dev] Utility to strip version records from storages

Jim Fulton jim at zope.com
Sat Aug 15 08:25:59 EDT 2009


On Sat, Aug 15, 2009 at 4:33 AM, Christian Theune<ct at gocept.com> wrote:
> -----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...

True, with BlobStorage.

Jim

-- 
Jim Fulton


More information about the ZODB-Dev mailing list