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 re-create a > ScoppedSession in each threads ?
The ScopedSession object is an interface to set of Session objects contained within a threading.local() object, and such is designed to be globally accessed by multiple threads. Each thread will ultimately talk to a separate Session that is local to the current thread. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.