From: Roland Häder Date: Tue, 26 Jul 2016 08:11:57 +0000 (+0200) Subject: Index on count column to improve SUM queries X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;ds=sidebyside;h=c882f475f963951c7d533c336d4757962d3319e7;hp=dad6a6d3a9fc38aabcf4e5e057a6004df0c2b767;p=ctracker.git Index on count column to improve SUM queries Signed-off-by: Roland Häder --- diff --git a/libs/lib_updates.php b/libs/lib_updates.php index 41762b8..197e984 100644 --- a/libs/lib_updates.php +++ b/libs/lib_updates.php @@ -77,6 +77,11 @@ FOREIGN KEY ( `ctracker_data_id` ) REFERENCES `' . $GLOBALS['ctracker_dbname'] . 5 => array( "ALTER TABLE `ctracker_data` ADD `request_method` VARCHAR( 255 ) NULL DEFAULT NULL COMMENT 'HTTP request method' AFTER `referer`, ADD INDEX ( `request_method` )", ), + + // Index on count + 6 => array( + 'ALTER TABLE `ctracker_data` ADD INDEX `count` (`count`)', + ), ); }