From: Aaron Schulz Date: Sat, 28 Feb 2009 04:11:51 +0000 (+0000) Subject: Tweak proposed change: add user_type_time index, since these queries are starting... X-Git-Tag: 1.31.0-rc.0~42655 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=a81d70fea12ff6774d5fa4c728c5d6321fe708dc;p=lhc%2Fweb%2Fwiklou.git Tweak proposed change: add user_type_time index, since these queries are starting to slow down for some users --- diff --git a/maintenance/archives/patch-log_user_text.sql b/maintenance/archives/patch-log_user_text.sql index f89a35f670..9dcc0e3dba 100644 --- a/maintenance/archives/patch-log_user_text.sql +++ b/maintenance/archives/patch-log_user_text.sql @@ -3,3 +3,5 @@ ALTER TABLE /*$wgDBprefix*/logging ADD log_target_id int unsigned NULL, CHANGE `log_type` `log_type` VARBINARY( 15 ) NOT NULL, CHANGE `log_action` `log_action` VARBINARY( 15 ) NOT NULL; + +CREATE INDEX /*i*/user_type_time ON /*_*/logging (log_user, log_type, log_timestamp);