[ZODB-Dev] savepoint not doing cacheGC?
Jim Fulton
jim at zope.com
Thu Mar 31 11:44:34 EDT 2011
On Thu, Mar 31, 2011 at 11:36 AM, Adam GROSZER <agroszer at gmail.com> wrote:
> Hello,
>
> I'm trying to iterate over the IntIds utility's object in a huge
> FileStorage DB, calling
> transaction.savepoint(optimistic=True)
> every 1000 iterations or so, but memory usage simply skyrockets.
> Weird is that almost the same code was working with python 2.5 and ZODB
> 3.9.6, now it does not with python 2.6 and ZODB 3.9.6.
I don't think savepoints ever did any cacheGC calls. It's up to you to do that
if you want. Savepoints only allow removal of modified objects from
memory (as they're saved in temporary storage).
If you aren't writing data, savepoints don't buy you anything and you
should simply call cacheGC yourself periodically.
Jim
--
Jim Fulton
http://www.linkedin.com/in/jimfulton
More information about the ZODB-Dev
mailing list