feat: index on movie genres, metadata, filters, pagination

This commit is contained in:
2026-03-19 14:03:01 +01:00
parent 6b170a2705
commit 0cd4386c44
6 changed files with 104 additions and 24 deletions
@@ -0,0 +1,3 @@
DROP INDEX IF EXISTS movies_title_idx;
DROP INDEX IF EXISTS movies_genres_idx;
@@ -0,0 +1,3 @@
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);