From fe0942c5cdadd21d368a33fa35dd601693cb45d7 Mon Sep 17 00:00:00 2001 From: Ishan Arya Date: Mon, 25 Sep 2023 16:02:12 +0530 Subject: [PATCH] fix: remove query changes - EXPLAIN ANALYZE shows that this uses the same query plan --- .../migrations/20230831093813_metadata_user_id_index.down.sql | 1 + .../migrations/20230831093813_metadata_user_id_index.up.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 internal/store/postgres/migrations/20230831093813_metadata_user_id_index.down.sql create mode 100644 internal/store/postgres/migrations/20230831093813_metadata_user_id_index.up.sql diff --git a/internal/store/postgres/migrations/20230831093813_metadata_user_id_index.down.sql b/internal/store/postgres/migrations/20230831093813_metadata_user_id_index.down.sql new file mode 100644 index 000000000..0388741cb --- /dev/null +++ b/internal/store/postgres/migrations/20230831093813_metadata_user_id_index.down.sql @@ -0,0 +1 @@ +DROP INDEX metadata_user_id_index; diff --git a/internal/store/postgres/migrations/20230831093813_metadata_user_id_index.up.sql b/internal/store/postgres/migrations/20230831093813_metadata_user_id_index.up.sql new file mode 100644 index 000000000..c73fa0b93 --- /dev/null +++ b/internal/store/postgres/migrations/20230831093813_metadata_user_id_index.up.sql @@ -0,0 +1 @@ +CREATE INDEX metadata_user_id_index ON metadata (user_id);