r22516 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22515‎ | r22516 | r22517 >
Date:21:42, 28 May 2007
Author:aaron
Status:old
Tags:
Comment:
*Add cuc_timestamp to the ip_hex,xff_hex, and user indexes since results are sorted on timestamp
Modified paths:
  • /trunk/extensions/CheckUser/cu_changes.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/CheckUser/cu_changes.sql
@@ -52,9 +52,8 @@
5353 cuc_agent VARCHAR(255) BINARY default NULL,
5454
5555 PRIMARY KEY cuc_id (cuc_id),
56 - INDEX (cuc_ip_hex),
57 - INDEX (cuc_user),
58 - INDEX (cuc_xff_hex),
 56+ INDEX cuc_ip_hex_time (cuc_ip_hex,cuc_timestamp),
 57+ INDEX cuc_user_time (cuc_user,cuc_timestamp),
 58+ INDEX cuc_xff_hex_time (cuc_xff_hex,cuc_timestamp),
5959 INDEX (cuc_timestamp)
6060 ) TYPE=InnoDB;
61 -