]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- the behavior of eagerloading such that the main query is
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 18 Oct 2009 21:59:54 +0000 (21:59 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 18 Oct 2009 21:59:54 +0000 (21:59 +0000)
commit4bd8451046e7ab7c95455eaf7aaedf8c10afb848
tree4f46f4d02c4f9267859aec72be36efe871872164
parentcad7e3ceca55f4b1937e77f6ad93b1da88899446
- the behavior of eagerloading such that the main query is
wrapped in a subquery when LIMIT/OFFSET are present now
makes an exception for the case when all eager loads are
many-to-one joins. In those cases, the eager joins are
against the parent table directly along with the
limit/offset without the extra overhead of a subquery,
since a many-to-one join does not add rows to the result.
CHANGES
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/strategies.py
test/orm/test_eager_relations.py