* Functions like task() can be safely cached per one DB
transaction. It will decrease the number of DB hits.
This patch adds @tx_cached decorator that caches
any function result using a thread local cache having
same scope as a DB transaction.
* Style changes.
Reviewed: https:/ /review. opendev. org/709693 /git.openstack. org/cgit/ openstack/ mistral/ commit/ ?id=756bd5566ac 965f62626dd70dc 3d09041248f40f
Committed: https:/
Submitter: Zuul
Branch: master
commit 756bd5566ac965f 62626dd70dc3d09 041248f40f
Author: Renat Akhmerov <email address hidden>
Date: Tue Feb 25 18:27:29 2020 +0700
Add caching for YAQL/Jinja expression functions
* Functions like task() can be safely cached per one DB
transaction. It will decrease the number of DB hits.
This patch adds @tx_cached decorator that caches
any function result using a thread local cache having
same scope as a DB transaction.
* Style changes.
Closes-Bug: #1864823 fe08f549ce7dd98 1b3c92df09a
Change-Id: Id00eae3cb8483d