From 03b8750413e83ac5cfbc5570f71e7ef22022c28c Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Thu, 15 Aug 2024 22:09:47 +0800 Subject: [PATCH] Revert "perf: add index on labels columns to library_item table" This reverts commit 706277085ab4832233ca8fc4ada3f92e32957b9d. --- .../migrations/0186.do.labels_index_on_library_item.sql | 5 ----- .../0186.undo.labels_index_on_library_item.sql | 9 --------- 2 files changed, 14 deletions(-) delete mode 100755 packages/db/migrations/0186.do.labels_index_on_library_item.sql delete mode 100755 packages/db/migrations/0186.undo.labels_index_on_library_item.sql diff --git a/packages/db/migrations/0186.do.labels_index_on_library_item.sql b/packages/db/migrations/0186.do.labels_index_on_library_item.sql deleted file mode 100755 index fee9f5f81..000000000 --- a/packages/db/migrations/0186.do.labels_index_on_library_item.sql +++ /dev/null @@ -1,5 +0,0 @@ --- Type: DO --- Name: labels_index_on_library_item --- Description: Add index on labels columns to library_item tables for better performance - -CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_library_item_state_label_names ON omnivore.library_item USING GIN (lower(array_cat(label_names, highlight_labels)::text)); diff --git a/packages/db/migrations/0186.undo.labels_index_on_library_item.sql b/packages/db/migrations/0186.undo.labels_index_on_library_item.sql deleted file mode 100755 index fb37d783a..000000000 --- a/packages/db/migrations/0186.undo.labels_index_on_library_item.sql +++ /dev/null @@ -1,9 +0,0 @@ --- Type: UNDO --- Name: more_index_on_library_item --- Description: Add index on labels columns to library_item tables for better performance - -BEGIN; - -DROP INDEX IF EXISTS idx_library_item_state_label_names; - -COMMIT;