From: Roland Häder <roland@mxchange.org>
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;h=1712b74ff997d8d32b78781e514ed3f79a670817;p=ctracker.git

Index on count column to improve SUM queries

Signed-off-by: Roland Häder <roland@mxchange.org>
---

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`)',
+		),
 	);
 }