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:
		
							parent
							
								
									226bc03bff
								
							
						
					
					
						commit
						8d28484240
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -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; | ||||||
| ''' | ''' | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue