Add "root_execution" mapped property to WorkflowExecution model
* We need to avoid using direct DB queries w/o using a mapped
model where possible for performance sake. Using a mapped entity
property is always more efficient because it's cached in an
SQLAlchemy session.
Closes-Bug: #1821860
Change-Id: I2d7652ea0cff8f2db7259d285ac98c582bf15b62
(cherry picked from commit 32c96b1b6c340c10a12d6f598268198083681031)
Reviewed: https:/ /review. openstack. org/648023 /git.openstack. org/cgit/ openstack/ mistral/ commit/ ?id=77a6831224f 1695c882d4289b5 5a187f862b0869
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit 77a6831224f1695 c882d4289b55a18 7f862b0869
Author: Renat Akhmerov <email address hidden>
Date: Mon Mar 18 10:41:59 2019 +0700
Add "root_execution" mapped property to WorkflowExecution model
* We need to avoid using direct DB queries w/o using a mapped
model where possible for performance sake. Using a mapped entity
property is always more efficient because it's cached in an
SQLAlchemy session.
Closes-Bug: #1821860
Change-Id: I2d7652ea0cff8f 2db7259d285ac98 c582bf15b62 0a12d6f59826819 8083681031)
(cherry picked from commit 32c96b1b6c340c1