[sqlalchemy] Seemingly unnecessary queries for object already in the session get executed when using create_eager option.

2011-05-25 Thread mdob
Consider a simple model like this: Library 1---* Shelf 1---* Book Accordingly our model has the following relationships declared: {tu wkelj kod z relationship wlaczajac backrefy) We will write a query with a join to get all three objects at once SELECT * FROM Library JOIN Shelf ON Library.id

Re: [sqlalchemy] Seemingly unnecessary queries for object already in the session get executed when using create_eager option.

2011-05-25 Thread Michael Bayer
On May 25, 2011, at 12:34 PM, mdob wrote: Consider a simple model like this: Library 1---* Shelf 1---* Book Accordingly our model has the following relationships declared: {tu wkelj kod z relationship wlaczajac backrefy) We will write a query with a join to get all three objects at