]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
disable all raiseload within the unit of work process.
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 26 Feb 2021 04:20:05 +0000 (23:20 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 1 Mar 2021 03:28:24 +0000 (22:28 -0500)
commit04861dfd0e75e6fff3aa730bcad27f3172ae2fd8
tree7e4c2b038eb7f665584fdee345c1089079f0d93c
parentdc615763d39916e9c037c7c376db1817cdf02764
disable all raiseload within the unit of work process.

The unit of work process now turns off all "lazy='raise'" behavior
altogether when a flush is proceeding.  While there are areas where the UOW
is sometimes loading things that aren't ultimately needed, the lazy="raise"
strategy is not helpful here as the user often does not have much control
or visibility into the flush process.

Fixes: #5984
Change-Id: I23f2e332a5faa5c7c29823c9be9434d129676a5a
doc/build/changelog/unreleased_14/5984.rst [new file with mode: 0644]
doc/build/orm/loading_relationships.rst
lib/sqlalchemy/orm/dependency.py
lib/sqlalchemy/orm/unitofwork.py
test/orm/test_cascade.py
test/orm/test_unitofworkv2.py