add event-id index to prevent large CPU loads when visiting the events page

This commit is contained in:
Zach Prezkuta
2013-01-27 17:52:44 -07:00
parent c9cce9873d
commit 3f77eb80fe
3 changed files with 19 additions and 2 deletions

View File

@@ -589,6 +589,7 @@ CREATE TABLE IF NOT EXISTS `item` (
KEY `uid_commented` (`uid`, `commented`),
KEY `uid_created` (`uid`, `created`),
KEY `uid_unseen` (`uid`, `unseen`),
KEY `event_id` (`event-id`),
FULLTEXT KEY `title` (`title`),
FULLTEXT KEY `body` (`body`),
FULLTEXT KEY `allow_cid` (`allow_cid`),