Add multicolumn index on download, published.

This helps generate the "sub box" page more quickly, which
was previously using temp b-tree for sorting.
master
voussoir 2020-06-24 22:28:57 -07:00
parent 226bc03bff
commit 8d28484240
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ CREATE INDEX IF NOT EXISTS index_video_author_download on videos(author_id, down
CREATE INDEX IF NOT EXISTS index_video_id on videos(id); CREATE INDEX IF NOT EXISTS index_video_id on videos(id);
CREATE INDEX IF NOT EXISTS index_video_published on videos(published); CREATE INDEX IF NOT EXISTS index_video_published on videos(published);
CREATE INDEX IF NOT EXISTS index_video_download on videos(download); CREATE INDEX IF NOT EXISTS index_video_download on videos(download);
CREATE INDEX IF NOT EXISTS index_video_download_published on videos(download, published);
---------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------
COMMIT; COMMIT;
''' '''