r94239 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94238‎ | r94239 | r94240 >
Date:12:49, 11 August 2011
Author:reedy
Status:ok
Tags:
Comment:
Followup r93211, add log_timestamp to end of the index
Modified paths:
  • /trunk/phase3/maintenance/archives/patch-logging-type-action-index.sql (modified) (history)
  • /trunk/phase3/maintenance/tables.sql (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/archives/patch-logging-type-action-index.sql
@@ -1 +1 @@
2 -CREATE INDEX /*i*/type_action ON /*_*/logging(log_type, log_action);
 2+CREATE INDEX /*i*/type_action ON /*_*/logging(log_type, log_action, log_timestamp);
Index: trunk/phase3/maintenance/tables.sql
@@ -1226,7 +1226,7 @@
12271227 CREATE INDEX /*i*/times ON /*_*/logging (log_timestamp);
12281228 CREATE INDEX /*i*/log_user_type_time ON /*_*/logging (log_user, log_type, log_timestamp);
12291229 CREATE INDEX /*i*/log_page_id_time ON /*_*/logging (log_page,log_timestamp);
1230 -CREATE INDEX /*i*/type_action ON /*_*/logging(log_type, log_action);
 1230+CREATE INDEX /*i*/type_action ON /*_*/logging(log_type, log_action, log_timestamp);
12311231
12321232
12331233 CREATE TABLE /*_*/log_search (

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r93211* (bug 22744) Add/Update indexes for queries done by the API...reedy17:03, 26 July 2011

Status & tagging log