[Zope-DB] How to do analysis? (was Re: Saga continues...)
Chris Withers
chrisw at simplistix.co.uk
Wed Oct 29 05:47:22 EST 2003
Matthew T. Kromer wrote:
> I'd probably use a module level global with a thread lock and a
> transaction registered thingy that requested context to be managed from
> the module globals.
Is the DA object currently that thingy?
I'm planning on having a DA instance->pool of connections module-level mapping,
where each DA object grabs a connection from the pool during transaction begin
(stored as an integer connection id in a _v_ variable) uses it in the query
method, and gives in back during transaction finalise.
Sound like a plan?
cheers,
Chris
More information about the Zope-DB
mailing list