<div class="gmail_quote">On Thu, May 20, 2010 at 14:18, Jürgen Herrmann <span dir="ltr">&lt;<a href="mailto:Juergen.Herrmann@xlhost.de">Juergen.Herrmann@xlhost.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
hi there!<br>
<br>
as our zope2 zodb grows we experience more and more conflicts<br>
with long running transactions. so i&#39;m going to rewrite these<br>
methods to commit transactions in batches - here my attempt<br>
to tackle this problem. the idea is to get a list of objects<br>
to be modified in this transaction, break it down to batches<br>
and commit after each batch was processed. to avoid zope&#39;s<br>
retry-on-conflict machinery and still have a chance to retry<br>
per batch transaction commits, the iteration over one batch<br>
is guarded by a try:except ConflictError: and a retry logic.<br></blockquote><div><br>Zope already has its own retry mechanism, maybe you might want to<br>call your long running method multiple times, each time working on the<br>

next batch.<br><br>Viele Grüße,<br> <br>           Patrick<br></div></div>