]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Small callcount reductions and refinement for cached queries
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 26 May 2020 02:36:44 +0000 (22:36 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 26 May 2020 02:36:44 +0000 (22:36 -0400)
commit903b18828461bb8cb8dca4acc56809b3df2b14d5
tree72a0c86fae3b9a6c9a33bf3ccd39f3c73f143a55
parent6930dfc032c3f9f474e71ab4e021c0ef8384930e
Small callcount reductions and refinement for cached queries

baked wasn't using the new one()/first()/one_or_none() methods,
fixed that.

loading._instance_processor() can skip setting up the
quick populators every time because it can cache the getters.

Callcounts have gone below what 1.3 does for the
test_baked_query performance suite, however runtime for
continued inexplicable reasons has not :(.   still suspecting
the result tuples but this seems so hard to believe.

Change-Id: Ifbca04834d27350e0fa82cb8512e66112abc8729
lib/sqlalchemy/ext/baked.py
lib/sqlalchemy/orm/loading.py
test/ext/test_baked.py