Add multicolumn index on download, published.

This helps generate the "sub box" page more quickly, which
was previously using temp b-tree for sorting.
This commit is contained in:
voussoir 2020-06-24 22:28:57 -07:00
parent 226bc03bff
commit 8d28484240

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_published on videos(published);
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;
'''