Re: Gratisan {?- Watch Godzilla (2014) Full Free Movie OnLine

2014-06-28 Thread Callysta Cabriona
*I hope that you

[sqlalchemy] Is it considered bad practice to have more than one session instance simultaneously in a web application?

2014-06-28 Thread Bao Niu
My situation is like this: I am developing a web application, which has a Person class, which has *FirstName* and *LastName* attributes. Now I want to build their full name attribute and make this *full_name* attribute queriable, by using hybrid_property, which entails query and hence session.

Re: [sqlalchemy] Is it considered bad practice to have more than one session instance simultaneously in a web application?

2014-06-28 Thread Mike Bayer
On 6/28/14, 7:13 AM, Bao Niu wrote: My situation is like this: I am developing a web application, which has a Person class, which has /FirstName/ and /LastName/ attributes. Now I want to build their full name attribute and make this /full_name/ attribute queriable, by using hybrid_property,

[sqlalchemy] Re: Is it considered bad practice to have more than one session instance simultaneously in a web application?

2014-06-28 Thread Jonathan Vanasco
It is bad practice to use only one session in a web application. It is standard practice to have one session for each web request. Some good docs for you to read: * http://docs.sqlalchemy.org/en/latest/orm/session.html#when-do-i-construct-a-session-when-do-i-commit-it-and-when-do-i-close-it *