[sqlalchemy] Association Table query against child in many to many relationship from Parent

2010-09-25 Thread cd34
From: http://www.sqlalchemy.org/docs/orm/relationships.html?highlight=backref#association-object I'm able to get the association to work, and according to the docs, adding the backref allows the query to be executed in reverse. How do I get the Parent of Child #1? Obviously I could query Child,

Re: [sqlalchemy] Expunge

2010-09-25 Thread Peter Hansen
On 2010-09-25 2:29 PM, Mark Erbaugh wrote: If I retrieve data strictly for reporting or other read-only use, e.g. the session will not be used to update data, should I expunge the objects returned by the query from the session? If I just let the session object go out of scope is that sufficient?

[sqlalchemy] Expunge

2010-09-25 Thread Mark Erbaugh
If I retrieve data strictly for reporting or other read-only use, e.g. the session will not be used to update data, should I expunge the objects returned by the query from the session? If I just let the session object go out of scope is that sufficient? Thanks, Mark -- You received this mess