[Zope] Re: MySQL thread connection question

Chris Withers chris at simplistix.co.uk
Mon Aug 23 07:15:51 EDT 2004


Tim Peters wrote:
> These are the only lines that matter <0.5 wink>:
> 
>             c=pool[-1]
>             del pool[-1]
> 
> in Db.open().  If an appropriate pool is available, a connection is
> reused from the end by exactly those two lines.  When a connection is
> returned (_closeConnection()), it's added to the end of the
> appropriate pool:
> 
>             pool.append(connection)
> 
> So all pools are stack-like, until they're exhausted.

*wry grinz*

> Dieter's fondness for them notwithstanding, the primary thing that's
> been keeping versions alive is that they *so* complicate so much of
> the code that it's dangerous to take them out):

You peered into Shared.ZRDB recently?

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the Zope mailing list