mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-18 00:56:42 +01:00
Add (thread
, id
) multi-column key to optimize rebuilding index pages.
This SQL command can be used to add the key to existing board tables: create index `thread_id` on posts_%s (`thread`, `id`);
This commit is contained in:
parent
e19b283c7e
commit
417b765a47
@ -27,6 +27,7 @@ CREATE TABLE IF NOT EXISTS `posts_{{ board }}` (
|
||||
`embed` text,
|
||||
UNIQUE KEY `id` (`id`),
|
||||
KEY `thread` (`thread`),
|
||||
KEY `thread_id` (`thread`, `id`),
|
||||
KEY `time` (`time`),
|
||||
FULLTEXT KEY `body` (`body`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user