Some SQL and indexes improvements

This commit is contained in:
Michael Foster 2013-09-01 02:04:42 +10:00
parent c567131ca7
commit b51fc38783
5 changed files with 38 additions and 21 deletions

View file

@ -27,8 +27,8 @@ CREATE TABLE IF NOT EXISTS ``posts_{{ board }}`` (
`embed` text,
UNIQUE KEY `id` (`id`),
KEY `thread_id` (`thread`,`id`),
KEY `filehash` (`filehash`),
KEY `time` (`time`),
FULLTEXT KEY `body` (`body`),
KEY `ip` (`ip`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;