New index in post tables for listing threads slightly faster (index pages)

This commit is contained in:
Michael Foster 2013-09-01 22:15:03 +10:00
parent cf3173d226
commit 22fcca343f
2 changed files with 8 additions and 2 deletions

View file

@ -29,6 +29,7 @@ CREATE TABLE IF NOT EXISTS ``posts_{{ board }}`` (
KEY `thread_id` (`thread`,`id`),
KEY `filehash` (`filehash`(40)),
KEY `time` (`time`),
KEY `ip` (`ip`)
KEY `ip` (`ip`),
KEY `list_threads` (`thread`, `sticky`, `bump`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;