[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zodb-dev
Subject:    Re: [ZODB-Dev] savepoint not doing cacheGC?
From:       Jim Fulton <jim () zope ! com>
Date:       2011-03-31 15:44:34
Message-ID: AANLkTimLsscmD0Xtr=btd6M0XK==oUkSYpXD2rQKBMpR () mail ! gmail ! com
[Download RAW message or body]

On Thu, Mar 31, 2011 at 11:36 AM, Adam GROSZER <agroszer@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
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic