[storm] connection pooling
Gustavo Niemeyer
gustavo at niemeyer.net
Tue Jul 31 17:02:40 BST 2007
Hi Drew,
> Does storm support connection pooling? My guess is no, looking at the
> source for databases/postgres.py.
Not right now. It'd be somewhat easy to support it, since we can just
put connections back in the database once they're close()d, and return
them back on new connections. We have plans to support this in the
base database class, what would immediately offer pooling for all backends.
OTOH, we've never felt the need for it, because of how zstorm works.
Stores are cached per-thread, and they keep a reference to the
connection, so in practice we have not only connection pooling, but
objects that may stay in-memory across transactions and requests.
If you ever feel the need for pooling in practice, please let us know.
--
Gustavo Niemeyer
http://niemeyer.net
More information about the storm
mailing list