Geoffrey Talvola said:
> Christoph Zwerschke wrote:
>> > import threading
>> > t = threading.currentThread()
>> > Then you can get and set arbitrary attributes on that
>> > thread to achieve thread-local storage. So a simple
>> > implementation of a function that gets a thread-local
>> > con
Christoph Zwerschke wrote:
> > import threading
> > t = threading.currentThread()
> > Then you can get and set arbitrary attributes on that
> > thread to achieve thread-local storage. So a simple
> > implementation of a function that gets a thread-local
> > connection could look like this:
>
> import threading
> t = threading.currentThread()
> Then you can get and set arbitrary attributes on that
> thread to achieve thread-local storage. So a simple
> implementation of a function that gets a thread-local
> connection could look like this:
> ...
Thanks, that looks quite reasonable an
Warren, thanks for the quick reply.
I think we should proceed as follows:
1) The MiscUtils/DBPool.py should be kept as it is, but it should be a
little bit better documented. The advantage of DBPool will be that the
code is very easy to understand. So it may serve as a “starting point”
for pe
Christoph Zwerschke said:
> * My last important question: Maybe I understand something wrong,
>but if I use DBPool for WebKit servlets, i.e. with the
>ThreadedAppServer, wouldn't it be much more reasonable to
>automatically bind the connections 1:1 to the servlet threads
>created by
Christoph Zwerschke said:
> I havent checked out DbConnectionPool yet. Which status has it?
> Warren, are you still working on it? Are you/somebody else interested
> in improving/testing this module and getting it into Webware, e.g.
> MiscUtils? If yes, Id like to contribute if I can.
>
I haven'
Hi all,
I’m just experimenting with WebKit and database connection pooling, and
some questions/suggestions came up which I hope can be answered here:
As far as I understand I have to use either MiscUtils/DBPool.py which
is pretty simple, or (as I noticed just now by searching the archives)
a m