From: moodler Date: Sat, 26 Apr 2003 15:24:04 +0000 (+0000) Subject: Update to add new indexes to MySQL tables. Speeds up the log access. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6459f225b8ac71fa660c1b0b8f214d5e34e31850;p=moodle.git Update to add new indexes to MySQL tables. Speeds up the log access. --- diff --git a/lib/db/mysql.php b/lib/db/mysql.php index ad39895bd5..154512b677 100644 --- a/lib/db/mysql.php +++ b/lib/db/mysql.php @@ -347,6 +347,12 @@ function main_upgrade($oldversion=0) { } } + if ($oldversion < 2003042600) { + /// Some more indexes - we need al the help we can get on the logs + execute_sql(" ALTER TABLE `{$CFG->prefix}log` ADD INDEX(module) "); + execute_sql(" ALTER TABLE `{$CFG->prefix}log` ADD INDEX(action) "); + } + return $result; } diff --git a/version.php b/version.php index 6463e3e7c5..754883c33b 100644 --- a/version.php +++ b/version.php @@ -5,7 +5,7 @@ // database to determine whether upgrades should // be performed (see lib/db/*.php) -$version = 2003042500; // The current version is a date (YYYYMMDDXX) +$version = 2003042600; // The current version is a date (YYYYMMDDXX) $release = "1.0.9 development"; // User-friendly version number