Add migration to create artist, album, and song title indicies

This commit is contained in:
Ethan Girouard 2024-02-16 14:18:06 -05:00
parent 11bc55bf61
commit bd7b1ebd1a
Signed by: eta357
GPG Key ID: 7BCDC36DFD11C146
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,3 @@
DROP INDEX artists_name_idx;
DROP INDEX albums_title_idx;
DROP INDEX songs_title_idx;

View File

@ -0,0 +1,3 @@
CREATE INDEX artists_name_idx ON artists USING GIST (name gist_trgm_ops);
CREATE INDEX albums_title_idx ON albums USING GIST (title gist_trgm_ops);
CREATE INDEX songs_title_idx ON songs USING GIST (title gist_trgm_ops);