wiki.techinc.nl/maintenance/archives/patch-rc_user_text-index.sql
Andrew Garrett 8671e7cda8 * (bug 5149) When autoblocks are enabled, retroactively apply an autoblock to the most recently used IP of a user when they are blocked.
* Add an index on (rc_user_text,rc_timestamp) on the recentchanges table. This will make CheckUser.php and the new retroactive autoblock functionality faster.
2006-11-08 09:54:06 +00:00

7 lines
No EOL
173 B
SQL

-- Add an index to recentchanges on rc_user_text
--
-- Added 2006-11-08
--
ALTER TABLE /*$wgDBprefix*/recentchanges
ADD INDEX rc_user_text(rc_user_text, rc_timestamp);