[ZODB-Dev] Re: PartitionedFileStorage
Shane Hathaway
shane at zope.com
Thu Apr 24 11:27:01 EDT 2003
Chris Withers wrote:
> Shane Hathaway wrote:
>
>> Ok, it's now in public CVS.
>>
>> http://cvs.zope.org/Packages/PartitionedFileStorage/
>>
>> The code automatically deals with varying partition sizes, so you can
>> have one partition that's 50 MB and another that's 100MB without any
>> surprises. The PARTITIONED_FILE_SIZE parameter only specifies when to
>> start a *new* partition.
>>
>> ...aw, what the heck, I'll help you out a little more. I just made a
>> Zope-2_6-branch version of the FileStorage patch also. Use
>> FileStorage_py_1_98_2_7.patch for the 2.6 branch.
>
>
> You're a star :-)
>
> BTW, what happens when you pack a partitioned FileStorage?
It creates more partitioned files and then renames them all at the end
of the pack. It's kind of fun to watch.
>> BTW I just discovered another use for this. You can run with
>> partitions normally off, then when you want to make a change that
>> you'd like to blow away afterward, you can turn on small partitions
>> and do your testing. Afterward, you just delete the extra partitions
>> and you're back to exactly where you were. I think that's pretty neat.
>
>
> Very cool :-)
>
> What needs to happen for this to be included in the standard Zope
> distribution?
Rigorous testing and advocacy. ;-)
Shane
More information about the ZODB-Dev
mailing list