[Zope] Design around conflict errors
Dieter Maurer
dieter at handshake.de
Fri Oct 10 14:17:47 EDT 2003
Jeff Youel wrote at 2003-10-9 09:15 -0700:
> ...
> Is it reasonable to start a new thread with a new db connection
> and use it to commit the changes so the database write is out-of-band
> wrt the request's transaction?
"CatalogQueue" does something like this.
But beware, it is *very* difficult to get this right.
It is usually desastrous to pass persistent objects between threads.
Especially, you cannot update a persistent object in one thread
and then pass it on to another thread to commit the modification
there.
Dieter
More information about the Zope
mailing list