[sqlalchemy] SQLAlchemy, ScopedSession and multi-threaded environment

2010-05-05 Thread fv
Hi, I read the documentation about scoped sessions but l'm not sure to understand well what can be shared between threads and what cannot be. Can we share a ScopedSession instance between threads ? Do we have to share only the sessionmaker and re-create a ScoppedSession in each threads ? I have

Re: [sqlalchemy] SQLAlchemy, ScopedSession and multi-threaded environment

2010-05-05 Thread Michael Bayer
On May 5, 2010, at 4:20 AM, fv wrote: Hi, I read the documentation about scoped sessions but l'm not sure to understand well what can be shared between threads and what cannot be. Can we share a ScopedSession instance between threads ? Do we have to share only the sessionmaker and