[Zope-dev] Turn-off undo.

Kevin Dangoor kid@kendermedia.com
Tue, 16 May 2000 10:13:29 -0400


Hi,

You can't exactly "turn off undo". This is a feature of the FileSystem
storage. Even if undo were removed, the FileSystem storage works by
appending all changes to the end of the file, so it would keep growing and
growing.

There are a couple of solutions. One: you can use BerkeleyStorage instead of
FileSystem Storage. That storage (available on Zope.org) doesn't support
undo, and also doesn't grow wildly when changes are made to objects.

Two: you can store all of your poll results in an SQL database.

For future development, I'd also recommend looking at ZPatterns... with
that, you'll be able to implement some things in ZODB and others in SQL and
have it all be pretty transparent to applications.

Kevin

----- Original Message -----
From: "Fabio Augusto Mazzarino" <mazza@radiumsystems.com.br>
To: <zope-dev@zope.org>
Sent: Tuesday, May 16, 2000 9:43 AM
Subject: [Zope-dev] Turn-off undo.


>  I'm having some problems with undo level, due to a poll flood, my Data.fs
> file have grown from 2MB to 150MB which turns Zope to a turtle (too slow),
I
> already packed Data.fs, but I want to prevent this from happening.
>  So I need to turn off undo, so Data.fs won't grow anymore. Does anybody
> knows how can I do this?