[Repoze-dev] threadpooling things

2010-04-29 Thread Chris Withers
Not strictly speaking a repoze question, but the people who live here have likely bumped into this, and I value your wise opinions :-) So, SQLAlchemy takes care of having one session per thread and a connection pool for you, however what about resources where that's not the case. For me, it's

Re: [Repoze-dev] threadpooling things

2010-04-29 Thread Chris Rossi
This currently lives in a specific project but I have considered pulling it out and making it more general: http://bfg.repoze.org/pastebin/715 The main thing you would need to do to make it a general purpose ResourcePool would be to pass a resource_factory callable into the constructor and,

Re: [Repoze-dev] threadpooling things

2010-04-29 Thread Chris Withers
Chris Rossi wrote: This currently lives in a specific project but I have considered pulling it out and making it more general: http://bfg.repoze.org/pastebin/715 Any reason you don't just use SQLAlchemy? Chris ___ Repoze-dev mailing list