diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-12-15 15:00:28 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-12-19 13:49:38 -0500 |
| commit | 736f93473d351cf3ab7680e4ed373e19f997b3bb (patch) | |
| tree | f29449dc6e8ffb55177d86aaaa241948d1eb413a /lib/sqlalchemy/sql/traversals.py | |
| parent | a91df497d8d78292b0b5e7f79656b3f82d7de4f7 (diff) | |
| download | sqlalchemy-736f93473d351cf3ab7680e4ed373e19f997b3bb.tar.gz | |
use load_scalar_attributes() for undefer
At some point, undeferral of attributes started emitting
a full ORM query for the entity, including that subclass columns
would use a JOIN. Seems to be at least in 1.3 / 1.4 and possibly
earlier. This JOINs to the superclass table unnecessarily.
Use load_scalar_attributes() here which should handle the whole
thing and emits a more efficient query for joined inheritance.
As this behavior seems to have been throughout 1.3 and 1.4
at least, targeting at 2.0 is likely best.
Fixes: #7463
Change-Id: Ie4bae767747bba0d03fb13eaff579d4bab0b1bc2
Diffstat (limited to 'lib/sqlalchemy/sql/traversals.py')
0 files changed, 0 insertions, 0 deletions
