Thanks for the reply!

I already tried
every minute, but that didn't help: I only saw the memory usage dropping the
first time, but never after.

I changed the code to what you suggested, but it still doesn't seem to help.
Something must be wrong somewhere along the line, but I don't have a clue
where to begin looking.
Would using something like guppy (or heapy, or what it's called) reveal

Could it be something about objects with circular references not being able
to be garbage-collected?
The objects in my DB are quite complex, so something like that might
actually be happening.

Adam Groszer-3 wrote:
> Well it loads too many objects in a single transaction.
> Doing this after some iterations (10k?, depends on your object sizes) 
> helps usually:
> def forceSavepoint(anyPersistentObject=None):
>      transaction.savepoint(optimistic=True)
>      if anyPersistentObject is not None:
>          #and clear picklecache
>          conn = anyPersistentObject._p_jar
>          conn.cacheGC()
> -- 
> Best regards,
>   Adam GROSZER
> --
> Quote of the day:
> A liberal is someone too poor to be a capitalist and too rich to be a 
> communist.
> _______________________________________________
> Zope3-users mailing list
View this message in context:
Sent from the Zope3 - users mailing list archive at

Zope3-users mailing list

Reply via email to