30 Aug
2002
30 Aug
'02
11:48 a.m.
you could just use a simple counter variable that gets incremented for every object you work on. then in your loop you could check the counter and commit every n times (meaning where counter != 0 and counter % n == 0). ***** counter = 0 <code that crals the ZODB> <code that manipulates the object> counter += 1 if counter % 50 == 0: get_transaction().commit() jens On Friday, Aug 30, 2002, at 06:16 US/Eastern, Max M wrote:
I need to remove an attribute from most any object in my zodb. I suspect that I will need to do partial commits to not slow down the process to much.
Has anybody got an example?
regards Max M