[storm] Storm and database pooling
Gustavo Niemeyer
gustavo at niemeyer.net
Thu Aug 30 14:50:43 BST 2007
Hi again,
> Yes it makes sense but where you would put "creation of the pool" should it
> go to the Database class?
Yes, or in a pooling class that gets the database on its constructor, and
would work as wrapper.
> but what about web applications(pylons) where I think is correct way that
> every request(thread) would get a new "Store" object and there I would to
> tell it to use
> connection from the pool
They should get a new Store, but not a new Database. Check out how
this is done in storm.zope.
--
Gustavo Niemeyer
http://niemeyer.net
More information about the storm
mailing list