From 5f132a58dea6c9144ae98836820fcfcb6ea6245e Mon Sep 17 00:00:00 2001 From: Sushant Date: Mon, 11 Jul 2022 12:26:37 +1000 Subject: [PATCH] adding index to default sorting column month for log_event table --- ansible/roles/logger-service/files/db/schema.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ansible/roles/logger-service/files/db/schema.sql b/ansible/roles/logger-service/files/db/schema.sql index 33dc315ac..4657dd43e 100644 --- a/ansible/roles/logger-service/files/db/schema.sql +++ b/ansible/roles/logger-service/files/db/schema.sql @@ -237,4 +237,6 @@ SET character_set_client = @saved_cs_client; CREATE INDEX esbee_entity_uid ON event_summary_breakdown_email_entity (entity_uid(6)); -CREATE INDEX esbre_entity_uid ON event_summary_breakdown_reason_entity (entity_uid(6)); \ No newline at end of file +CREATE INDEX esbre_entity_uid ON event_summary_breakdown_reason_entity (entity_uid(6)); + +CREATE INDEX month_idx ON log_event (`month`); \ No newline at end of file