[Zope-dev] Making a ZSQL.DA fully multi-threaded?

Brad Clements bkc at murkworks.com
Fri Jul 16 13:34:58 EDT 2004


On 16 Jul 2004 at 11:38, Andy Dustman wrote:

> > Also, two threads can' t open a connection "at the same time" because
> > their connection table management isn't "thread safe".
> 
> That does suck, but it doesn't seem like an insurmountable problem for a
> DA. You just need a per-DA instance mutex which you acquire before opening
> a connection release afterwards.

Someone else said that every thread has it's own copy of ZODB, hence their own copies of 
each DA. So putting the mutex on the DA won't help this, will it?


-- 
Brad Clements,                bkc at murkworks.com   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
http://www.wecanstopspam.org/                   AOL-IM: BKClements



More information about the Zope-Dev mailing list