On Apr 25, 2013, at 9:26 PM, Pedro Werneck <
pjwe...@gmail.com> wrote:
>
>
> So, basically it's just passing the eventlet pool as the creator for the create_engine call? Good.
>
> Right, it isn't critical at all. My system is working perfectly fine and much faster than without eventlets most of the time, but since I went over the trouble of changing it to using eventlets, I'd like to try getting the database connection right too and see if there's any significant improvemente.
I did have the thought that if eventlet needs a special connection pool, you might want to disable SQLAlchemy's own pooling within create_engine() by passing "poolclass=NullPool". Otherwise it will hold onto a small set of connections persistently, not sure if that's what eventlet's pool is trying to implement in a different way.