[storm] Storm and database pooling

Gustavo Niemeyer gustavo at niemeyer.net
Thu Aug 30 13:29:02 BST 2007


Hello Stanko,

> I try to implement database pooling with Storm using sqlalchemy pooling and
> it seems it works.

Nice!

> store=Store(create_database("mssql://:@N5010/Dummy",pool))

The design of the interaction between the Database, Connection and Store
classes was already designed with pooling in mind.  The idea is that you
can create a Database instance that will return cached connections when
its connect() method is called, and Connection should return itself
to the pool when it's close()d.  This way, none of the other methods have
to change.

Makes sense?

-- 
Gustavo Niemeyer
http://niemeyer.net



More information about the storm mailing list