mistral/mistral/workflow
Mike Fedosin 8a81089785 Optimize mistral queries for 'get_task_executions'
During workflow executions there are a lot of calls of function
'find_task_executions_by_name' from lookup_utils. This function
internally calls 'get_task_executions' with two filters: name and
workflow_execution_id.

To optimize this call it's reasonable to add a composite db index
by these two fields.

Another optimization is to explicitely disable sorting by 'created_at',
because it's unnecessary in this particulat case.

Change-Id: Ife150a384575cc4ad2fe45dc093816b48268df6f
2017-10-16 04:22:10 +00:00
..
__init__.py Initial commit for the new engine 2014-08-06 16:24:26 +07:00
base.py Add a hacking rule for string interpolation at logging 2017-07-26 11:13:15 +00:00
commands.py Make "triggered_by" work in case of "join" tasks 2017-06-05 15:36:30 +00:00
data_flow.py Add a hacking rule for string interpolation at logging 2017-07-26 11:13:15 +00:00
direct_workflow.py Add a hacking rule for string interpolation at logging 2017-07-26 11:13:15 +00:00
lookup_utils.py Optimize mistral queries for 'get_task_executions' 2017-10-16 04:22:10 +00:00
reverse_workflow.py Make "triggered_by" work in case of "join" tasks 2017-06-05 15:36:30 +00:00
states.py Add cancelled state to action executions 2016-11-16 19:34:04 +07:00
utils.py Add more use of mistral-lib in mistral 2017-06-20 15:23:18 +00:00