]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Run eager loaders on unexpire
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 26 Apr 2017 22:50:05 +0000 (18:50 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 23 Aug 2019 16:46:41 +0000 (12:46 -0400)
commit2fc7078a08db057ea7e43991205aaee5562d7fd3
treefb4f227072d50d8e493b988832fc0b4c2771664b
parente429ef1d31343b99e885f58a79800ae490155294
Run eager loaders on unexpire

Eager loaders, such as joined loading, SELECT IN loading, etc., when
configured on a mapper or via query options will now be invoked during
the refresh on an expired object; in the case of selectinload and
subqueryload, since the additional load is for a single object only,
the "immediateload" scheme is used in these cases which resembles the
single-parent query emitted by lazy loading.

Change-Id: I7ca2c77bff58dc21015d60093a88c387937376b2
Fixes: #1763
12 files changed:
doc/build/changelog/migration_14.rst
doc/build/changelog/unreleased_14/1763.rst [new file with mode: 0644]
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/instrumentation.py
lib/sqlalchemy/orm/loading.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/state.py
lib/sqlalchemy/orm/strategies.py
test/orm/test_eager_relations.py
test/orm/test_expire.py
test/orm/test_selectin_relations.py
test/orm/test_subquery_relations.py