Re: [Webware-devel] [dbutils] threading.local cleaned by wsgi server

2008-10-22 Thread William Dode
On 18-10-2008, Christoph Zwerschke wrote: > William Dode schrieb: >> Then i have to set closeable when i create it ? >> What i would like is to have closeable set to False, and decide *after* >> (for maintenance of the db) that i want a brut close. > > You can set closeable to True when creating

Re: [Webware-devel] [dbutils] threading.local cleaned by wsgi server

2008-10-18 Thread Christoph Zwerschke
William Dode schrieb: > Then i have to set closeable when i create it ? > What i would like is to have closeable set to False, and decide *after* > (for maintenance of the db) that i want a brut close. You can set closeable to True when creating the PersistentDB instance, then all connections w

Re: [Webware-devel] [dbutils] threading.local cleaned by wsgi server

2008-10-15 Thread William Dode
On 12-10-2008, Christoph Zwerschke wrote: > William Dode schrieb: >> Maybe the python implementation by default and an option tu use the >> C implementation (did you bench it ?). Like that most of the people will >> have nothing to do. > > If I measured correctly, then with the C implementation yo

Re: [Webware-devel] [dbutils] threading.local cleaned by wsgi server

2008-10-12 Thread Christoph Zwerschke
William Dode schrieb: > Maybe the python implementation by default and an option tu use the > C implementation (did you bench it ?). Like that most of the people will > have nothing to do. If I measured correctly, then with the C implementation you can get the connection 10% faster. That's not a

Re: [Webware-devel] [dbutils] threading.local cleaned by wsgi server

2008-10-07 Thread William Dode
On 06-10-2008, Christoph Zwerschke wrote: > William Dode schrieb: >> With python >= 2.4 you use threading.local in PersistentDB, but with >> some server (mod_wsgi) threading.local is not kept between requests >> because of the C implementation. We can also imagine that somes wsgi >> server will

Re: [Webware-devel] [dbutils] threading.local cleaned by wsgi server

2008-10-06 Thread Christoph Zwerschke
Christoph Zwerschke schrieb: > If there are other things to consider for DBUtils 1.0, let me know. Same for Webware 1.0 final. It's long overdue, but I just never found the time to make. Let me know if there is anything that needs to be fixed for the final release. I've now planned it for this w

Re: [Webware-devel] [dbutils] threading.local cleaned by wsgi server

2008-10-06 Thread Christoph Zwerschke
William Dode schrieb: > With python >= 2.4 you use threading.local in PersistentDB, but with > some server (mod_wsgi) threading.local is not kept between requests > because of the C implementation. We can also imagine that somes wsgi > server will clean threading.local. > If we force to use the

[Webware-devel] [dbutils] threading.local cleaned by wsgi server

2008-10-06 Thread William Dode
Hi, With python >= 2.4 you use threading.local in PersistentDB, but with some server (mod_wsgi) threading.local is not kept between requests because of the C implementation. We can also imagine that somes wsgi server will clean threading.local. If we force to use the python implementation it wo