[UPDATE] Added indexes for share archive

This commit is contained in:
Sebastian Grewe 2013-12-13 10:06:29 +01:00
parent 68958fb7bf
commit b09d27a7cc
2 changed files with 7 additions and 1 deletions

View File

@ -157,7 +157,9 @@ CREATE TABLE IF NOT EXISTS `shares_archive` (
`time` datetime NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `share_id` (`share_id`),
KEY `time` (`time`)
KEY `time` (`time`),
KEY `our_result` (`our_result`),
KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Archive shares for potential later debugging purposes';
CREATE TABLE IF NOT EXISTS `statistics_shares` (

View File

@ -0,0 +1,4 @@
ALTER TABLE `shares_archive` ADD INDEX ( `username` ) ;
ALTER TABLE `shares_archive` ADD INDEX ( `share_id` ) ;
ALTER TABLE `shares_archive` ADD INDEX ( `our_result` ) ;
ALTER TABLE `shares_archive` ADD INDEX ( `time` ) ;