]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Update dogpile.cache example to be compatible with baked query.
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 16 May 2018 20:31:40 +0000 (16:31 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 17 May 2018 16:45:36 +0000 (12:45 -0400)
commit02ed946d6d4d6e5fc39a28be53eb16c2844a0c2a
tree11b36a002a79dd266aa1905d29fbdd39e2b00bab
parent63427628c753f1f980ec3c51c920e0e034dc69da
Update dogpile.cache example to be compatible with baked query.

Updated the dogpile.caching example to include new structures that
accommodate for the "baked" query system, which is used by default within
lazy loaders and some eager relationship loaders. The dogpile.caching
"relationship_caching" and "advanced" examples were also broken due to
:ticket:`4256`.  The issue here is also worked-around by the fix in
:ticket:`4128`.

Note that this recipe requires
I3f86fcb12a6a9a89aa308b335e75c25969bcc30e in order for the
"advanced" example to work.

Change-Id: I9d35417f1d6c1906555583b8225d3da7f81736f7
Fixes: #4258
(cherry picked from commit 2c7f2954f793cbb4d991a870c1f725fc98e2e83f)
doc/build/changelog/unreleased_12/4258.rst [new file with mode: 0644]
examples/dogpile_caching/caching_query.py
test/ext/test_baked.py