Adding indexes migration.

This commit is contained in:
Maxime Delporte
2025-11-14 16:46:21 +01:00
parent a17a49e814
commit 6b3a6ee4f5
2 changed files with 4 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
DROP INDEX IF EXISTS movies_title_idx;
DROP INDEX IF EXISTS movies_genres_idx;

View File

@@ -0,0 +1,2 @@
CREATE INDEX IF NOT EXISTS movies_title_idx ON movies USING GIN (to_tsvector('simple', title));
CREATE INDEX IF NOT EXISTS movies_genres_idx ON movies USING GIN (genres);