> So, the best place to call those would be during my commit break (whenever I
> decide to take it? [which would be less often if I could be sure of no
> crashing]).  Are there any other problems with the way I was using ZODB in
> my code?  I really like it, but I recognize that it's a lot more complicated
> than my old system.

Correct.  Pick appropriate place where you are "finished" with a batch
of objects
and possibly have them no longer referenced.  Then you can call cacheMinimize.
You can call cacheGC to reduce memory usage.

Your code looks straight forward.  I do not see it doing anything strange.

It's more complicated than old system? Ugh.  That sucks.  The ZODB should
be LESS complicated than sqlite+custom rolled caching.  If not than you may
be doing something wrong or ZODB is not living up to its promise *wink*

cheers
alan
_______________________________________________
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

Reply via email to