Index (author, download) so that listing all channels is faster.

This commit is contained in:
voussoir 2019-01-31 17:43:01 -08:00
parent 6b24b7416c
commit 74607b7e60

View file

@ -61,6 +61,7 @@ CREATE TABLE IF NOT EXISTS videos(
CREATE INDEX IF NOT EXISTS index_channel_id on channels(id);
CREATE INDEX IF NOT EXISTS index_video_author on videos(author_id);
CREATE INDEX IF NOT EXISTS index_video_author_download on videos(author_id, download);
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);