[ZODB-Dev] Re: PartitionedFileStorage

Shane Hathaway shane at zope.com
Wed Apr 23 15:51:13 EDT 2003


(CC'ed to zodb-dev)

Chris Withers wrote:
>>> Do you still use and/or maintain PartitionedFileStorage?
>>>
>>> If so, where can I get the latest release?

Ok, it's now in public CVS.

http://cvs.zope.org/Packages/PartitionedFileStorage/

Apply the patch to the HEAD revision of FileStorage.py.  Put 
PartitionedFile.py in the ZODB directory next to FileStorage.py.  Set 
the PARTITIONED_FILE_SIZE environment variable to the size you'd like 
for each partition (in bytes) and start Zope.

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.

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.

Shane




More information about the ZODB-Dev mailing list