]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Warn that before_compile for lazyload needs bake_queries=False
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 25 Oct 2019 14:08:18 +0000 (10:08 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 25 Oct 2019 14:11:19 +0000 (10:11 -0400)
commit0393ddff3093056baf3bba2d7671e1dd89705fbe
tree7e218db2c0557b29fe6a4d5cfbdc49cd872d0fda
parent4f2f583ec130b2094b3af3739e038f844a22ecd8
Warn that before_compile for lazyload needs bake_queries=False

The longer term future plan for ORM queries is that there
will be a new hook that receives queries before invocation
rather than "compilation", which will make use of a new
caching system.

Fixes: #4947
Change-Id: I256c16155a0cc9b7133e86e22d27040cb64eb1a9
(cherry picked from commit 172d99a8a1282b534aeadafebdd2af0162758931)
lib/sqlalchemy/orm/events.py