summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/base.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-08-05 16:42:26 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2020-08-05 16:42:26 -0400
commitcc57ea495f6460dd56daa6de57e40047ed999369 (patch)
tree837f5a84363c387d7f8fdeabc06928cd078028e1 /lib/sqlalchemy/sql/base.py
parent2a946254023135eddd222974cf300ffaa5583f02 (diff)
downloadsqlalchemy-cc57ea495f6460dd56daa6de57e40047ed999369.tar.gz
Robustness for lambdas, lambda statements
in order to accommodate relationship loaders with lambda caching, a lot more is needed. This is a full refactor of the lambda system such that it now has two levels of caching; the first level caches what can be known from the __code__ element, then the next level of caching is against the lambda itself and the contents of __closure__. This allows for the elements inside the lambdas, like columns and entities, to change and then be part of the cache key. Lazy/selectinloads' use of baked queries had to add distinct cache key elements, which was attempted here but overall things needed to be more robust than that. This commit is broken out from the very long and sprawling commit at Id6b5c03b1ce9ddb7b280f66792212a0ef0a1c541 . Change-Id: I29a513c98917b1d503abfdd61e6b6e8800851aa8
Diffstat (limited to 'lib/sqlalchemy/sql/base.py')
0 files changed, 0 insertions, 0 deletions