10 Oct
2003
10 Oct
'03
6:17 p.m.
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