[Zope] ZODB Transactions
Dieter Maurer
dieter@handshake.de
Fri, 21 Mar 2003 21:52:52 +0100
Bo M. Maryniuck wrote at 2003-3-20 21:38 +0200:
> ... mass importing many files ...
I fear, you must call intermittent
"get_transaction().commit()"
to commit, to reduce the danger of ConflictError's.
You should be aware, that this is no guarantee that
the "commit" does not raise a conflict error.
In this case, you should abort the transaction
and then retry the upload for the
failed file (do not forget
to reset the file to its start).
You may also see "ReadConflictError"s outside of the "commit".
Here again, abort the transaction and retry for the failed file.
Dieter