From afa3cb23edaaea3443aa774e452d44fa50230e40 Mon Sep 17 00:00:00 2001 From: Tim Macdonald <tim@metabase.com> Date: Wed, 11 Jan 2023 09:28:15 +0000 Subject: [PATCH] Add indices for executor_id and context in query_execution (#27606) [Fixes #27216] --- resources/migrations/000_migrations.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/resources/migrations/000_migrations.yaml b/resources/migrations/000_migrations.yaml index 021f9c13a31..d64afbaf9be 100644 --- a/resources/migrations/000_migrations.yaml +++ b/resources/migrations/000_migrations.yaml @@ -13909,6 +13909,30 @@ databaseChangeLog: columnName: size_y defaultValue: 4 + - changeSet: + id: v46.00-042 + author: tsmacdonald + comment: Added 0.46.0 -- index query_execution.executor_id + changes: + - createIndex: + tableName: query_execution + columns: + - column: + name: executor_id + indexName: idx_query_execution_executor_id + + - changeSet: + id: v46.00-043 + author: tsmacdonald + comment: Added 0.46.0 -- index query_execution.context + changes: + - createIndex: + tableName: query_execution + columns: + - column: + name: context + indexName: idx_query_execution_context + # >>>>>>>>>> DO NOT ADD NEW MIGRATIONS BELOW THIS LINE! ADD THEM ABOVE <<<<<<<<<< ######################################################################################################################## -- GitLab