On Thu, Jul 24, 2014 at 11:55:29PM -0700, Torsten Irländer wrote:
> I think/hope basically this should be possible in some way. But how? At 
> least I know that i can rebind the connection of the sqlalchemy session. So 
> i can initiate a new connection for the current request and bind it to the 
> session. But I expect problems here with concurrent requests.
> So maybe having a session per user might be worth looking closer at.
> 
> Does anyone have experience in this?

I've had great success just instantiating a sqlalchemy.orm.Session
object directly in a reify'd property on the request. i.e. Not using a
sessionmaker or scoped session at all.

-- 
Brian Sutherland

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to