summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2019-07-19 13:05:06 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2019-07-19 17:55:42 -0400
commita5a66f1e580150a55a729e7b6dc804adb55b2f5c (patch)
treed17890f8fa110a15bba561ba109eda053e3a9e2a /lib/sqlalchemy/sql/compiler.py
parent3bc3ea395eb16f548a11849bc15f0f78b7b2400f (diff)
downloadsqlalchemy-a5a66f1e580150a55a729e7b6dc804adb55b2f5c.tar.gz
Optimize out JOIN for selectinload with many to one
The optimzation applied to selectin loading in :ticket:`4340` where a JOIN is not needed to eagerly load related items is now applied to many-to-one relationships as well, so that only the related table is queried for a simple join condition. In this case, the related items are queried based on the value of a foreign key column on the parent; if these columns are deferred or otherwise not loaded on any of the parent objects in the collection, the loader falls back to the JOIN method. Fixes: #4775 Change-Id: I398e0d276789ce6e0019d213a37bdf99d24ec290
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
0 files changed, 0 insertions, 0 deletions