[Zope] how to keep stuff out of undo

Steve Alexander steve@cat-box.net
Wed, 30 Aug 2000 10:22:51 +0100


Roman Milner wrote:

> Hi. We have a product (an mp3 jukebox) that uses the ZODB to store a large
> data structure of all the albums and track names.  Many people are
> allowed to add/remove albums from the database.  The problem is, when
> they do this the entire data structure is backed up for undo.  So, by
> the end of each day, our ZODB has grown so large we are out of disk space.

The way I'm reading this, you have this entire database of albums and 
tracks as a sinle object in your ZODB.

Don't do that.

Refactor your product to use subobjects of your Jukebox object as 
albums, and subobjects of those as tracks.

Then, only a small amount of data gets rewritten on each transaction.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net