Skip to content

Commit 9ed1ba4

Browse files
committed
drop unnecessary trigram index on tests table
1 parent 3f0a1b8 commit 9ed1ba4

File tree

2 files changed

+5
-0
lines changed
  • blade/db/postgres/migrations/2025-11-19-000100_drop_tests_name_trgm

2 files changed

+5
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- Rollback: Recreate trigram index on tests.name
2+
CREATE INDEX IF NOT EXISTS tests_name_trgm_idx ON tests USING GIN (name gin_trgm_ops);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- Drop trigram index on tests.name since we now search on unique_test_names table
2+
-- Keep the regular btree index (tests_name_idx) for joins and equality filters
3+
DROP INDEX IF EXISTS tests_name_trgm_idx;

0 commit comments

Comments
 (0)