Comment 2 for bug 1864823

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (master)

Reviewed: https://review.opendev.org/709693
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=756bd5566ac965f62626dd70dc3d09041248f40f
Submitter: Zuul
Branch: master

commit 756bd5566ac965f62626dd70dc3d09041248f40f
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
    Change-Id: Id00eae3cb8483dfe08f549ce7dd981b3c92df09a