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 you can get the > connection 10% faster. That's not a big deal, so I have now made the > Python implementation the standard, but added a parameter so that you > can use any other implementation as well.
Fine, i confirm that rc1 works with mod_wsgi. > >> I just see that you added a closeable attribute, fine. >> >> There is no close method for all the pool of PersistentDB ? > > Yes, because it's not really a pool like in PooledDB. The connections > are owned by the threads and are closed automatically when the threads > are closed. You mean that it'll be not safe to close a connexion of an other thread? > >> Why the _close method of the connection to force it is not public ? > > Since you should use the normal close method that heeds the closeable > parameter. 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. In fact i've not more the problem since i use mod_wsgi, i stop the application completly... I'm just curious. thks > > You can download the new version at > http://www.webwareforpython.org/downloads/DBUtils/DBUtils-1.0rc1.tar.gz > > -- Christoph > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ -- William Dodé - http://flibuste.net Informaticien Indépendant ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Webware-devel mailing list Webware-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-devel