Utility to strip version records from storages

View: New views
3 Messages — Rating Filter:   Alert me  

Utility to strip version records from storages

by Jim Fulton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

Jim

--
Jim Fulton
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@...
http://mail.zope.org/mailman/listinfo/zodb-dev

Re: Utility to strip version records from storages

by Christian Theune-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----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@...
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-----
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@...
http://mail.zope.org/mailman/listinfo/zodb-dev

Re: Utility to strip version records from storages

by Jim Fulton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Aug 15, 2009 at 4:33 AM, Christian Theune<ct@...> 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
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@...
http://mail.zope.org/mailman/listinfo/zodb-dev