diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-10-02 23:34:31 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-10-02 23:34:31 +1100 |
| commit | 55743a77054f1a5a5157856bd2c11751892653d2 (patch) | |
| tree | f714c9366ba12de30d3b810d36286b0b728afb14 /templates | |
| parent | d4f1322ee8fe6055cd96af4145c8f2d2cbbb5f74 (diff) | |
add indexes
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/posts.sql | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/posts.sql b/templates/posts.sql index 917398bd..6e691044 100644 --- a/templates/posts.sql +++ b/templates/posts.sql @@ -23,5 +23,8 @@ CREATE TABLE IF NOT EXISTS `posts_{board}` ( `sticky` int(1) NOT NULL, `locked` int(1) NOT NULL, `embed` text, - UNIQUE KEY `id` (`id`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + UNIQUE KEY `id` (`id`), + KEY `thread` (`thread`), + KEY `time` (`time`), + FULLTEXT KEY `body` (`body`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
