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.
> 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.
> 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.
You can download the new version at
http://www.webwareforpython.org/downloads/DBUtils/DBUtils-1.0rc1.tar.gz
-- Christoph
|