From 6af737eb59d3250eb8487e79c783662066abd639 Mon Sep 17 00:00:00 2001 From: Khushboo Date: Tue, 8 Feb 2022 10:46:34 +0530 Subject: [PATCH 1/3] Change compound index to improve query performance --- st2common/st2common/models/db/execution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/st2common/st2common/models/db/execution.py b/st2common/st2common/models/db/execution.py index 1f74661302..0de35a5c31 100644 --- a/st2common/st2common/models/db/execution.py +++ b/st2common/st2common/models/db/execution.py @@ -94,7 +94,7 @@ class ActionExecutionDB(stormbase.StormFoundationDB): {"fields": ["trigger_type.name"]}, {"fields": ["trigger_instance.id"]}, {"fields": ["context.user"]}, - {"fields": ["-start_timestamp", "action.ref", "status"]}, + {"fields": ["action.ref", "status", "-start_timestamp"]}, {"fields": ["workflow_execution"]}, {"fields": ["task_execution"]}, ] From 0114670151a09201d6adcbbd8b45f4fd6e45a615 Mon Sep 17 00:00:00 2001 From: Khushboo Date: Tue, 8 Feb 2022 10:48:50 +0530 Subject: [PATCH 2/3] Add Changelog --- CHANGELOG.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 4715252e39..ce9834f3a4 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -20,6 +20,11 @@ Fixed contributed by @guzzijones12 +* Link shutdown routine and sigterm handler to main thread #5555 + + Contributed by @khushboobhatia01 + + Added ~~~~~ From 94fd3a3a90ab9877f5ce444aabcb4fcbf1e46ff6 Mon Sep 17 00:00:00 2001 From: Khushboo Date: Wed, 9 Feb 2022 09:12:46 +0530 Subject: [PATCH 3/3] Add CHANGELOG --- CHANGELOG.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ce9834f3a4..56a38c5a53 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -24,6 +24,9 @@ Fixed Contributed by @khushboobhatia01 +* Change compound index for ActionExecutionDB to improve query performance #5568 + + Contributed by @khushboobhatia01 Added ~~~~~