Skip to content

Commit 4aac99b

Browse files
authored
Merge pull request #5568 from khushboobhatia01/bkhushboo/impove_index
Change compound index to improve query performance
2 parents e470984 + 94fd3a3 commit 4aac99b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.rst

+8
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ Fixed
2020

2121
contributed by @guzzijones12
2222

23+
* Link shutdown routine and sigterm handler to main thread #5555
24+
25+
Contributed by @khushboobhatia01
26+
27+
* Change compound index for ActionExecutionDB to improve query performance #5568
28+
29+
Contributed by @khushboobhatia01
30+
2331
Added
2432
~~~~~
2533

st2common/st2common/models/db/execution.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class ActionExecutionDB(stormbase.StormFoundationDB):
9494
{"fields": ["trigger_type.name"]},
9595
{"fields": ["trigger_instance.id"]},
9696
{"fields": ["context.user"]},
97-
{"fields": ["-start_timestamp", "action.ref", "status"]},
97+
{"fields": ["action.ref", "status", "-start_timestamp"]},
9898
{"fields": ["workflow_execution"]},
9999
{"fields": ["task_execution"]},
100100
]

0 commit comments

Comments
 (0)