Results of some YAQL/Jinja functions that hit DB can be cached per transaction
Bug #1864823 reported by
Renat Akhmerov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Fix Released
|
Medium
|
Renat Akhmerov |
Bug Description
A workflow can use lots of YAQL/Jinja functions like task(), execution() that hit database within one DB transaction. However, those calls to DB are not cached by the SQLAlchemy session since access is not done using primary key (id) but rather things like name or other filters. At the same time some of these functions can be safely cached per one TX if we know that possible changes in parallel transactions can be ignored. "task()" is one of such functions.
Changed in mistral: | |
milestone: | none → ussuri-2 |
assignee: | nobody → Renat Akhmerov (rakhmerov) |
importance: | Undecided → Medium |
Changed in mistral: | |
milestone: | ussuri-2 → ussuri-3 |
To post a comment you must log in.
Change abandoned by Eyal (<email address hidden>) on branch: master /review. opendev. org/709693
Review: https:/