]> 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:07 +0000 (10:11 -0400)
commit247f703c7b3f11c6a14036b864a417994e2b28d7
treeb0fc6a9064e884c7e70ec9907cefa9be2d6d4e3d
parentbf8401479a16373c4261bb051d9c68286bf62d5b
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