generated from denpeshkov/go-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add genres index and sort order filter
- Loading branch information
1 parent
084ffbf
commit d18f097
Showing
3 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
internal/postgres/migrations/004_add_movies_search_indexes.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP INDEX IF EXISTS movies_genres_idx; |
1 change: 1 addition & 0 deletions
1
internal/postgres/migrations/004_add_movies_search_indexes.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE INDEX IF NOT EXISTS movies_genres_idx ON movies USING GIN (genres); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters