destroy rc_patrolling index, no removers added, I hope not that many people did run update with that revision :)

This commit is contained in:
Domas Mituzas 2007-09-05 08:14:18 +00:00
parent 213c894a56
commit 74e1bf30a5
4 changed files with 2 additions and 10 deletions

View file

@ -1,4 +0,0 @@
-- Index to speed up locating unpatrolled changes
-- matching specific edit criteria
ALTER TABLE /*$wgDBprefix*/recentchanges
ADD INDEX `rc_patrolling` ( `rc_this_oldid` , `rc_last_oldid` , `rc_patrolled` );

View file

@ -344,7 +344,6 @@ CREATE INDEX rc_namespace_title ON recentchanges (rc_namespace, rc_title);
CREATE INDEX rc_cur_id ON recentchanges (rc_cur_id);
CREATE INDEX new_name_timestamp ON recentchanges (rc_new, rc_namespace, rc_timestamp);
CREATE INDEX rc_ip ON recentchanges (rc_ip);
CREATE INDEX rc_patrolling ON recentchanges (rc_this_oldid, rc_last_oldid, rc_patrolled);
CREATE TABLE watchlist (

View file

@ -882,8 +882,7 @@ CREATE TABLE /*$wgDBprefix*/recentchanges (
INDEX new_name_timestamp (rc_new,rc_namespace,rc_timestamp),
INDEX rc_ip (rc_ip),
INDEX rc_ns_usertext (rc_namespace, rc_user_text),
INDEX rc_user_text (rc_user_text, rc_timestamp),
INDEX rc_patrolling (rc_this_oldid, rc_last_oldid, rc_patrolled)
INDEX rc_user_text (rc_user_text, rc_timestamp)
) /*$wgDBTableOptions*/;

View file

@ -860,7 +860,6 @@ function do_rc_indices_update() {
$indexes = array(
'rc_ns_usertext' => 'patch-recentchanges-utindex.sql',
'rc_user_text' => 'patch-rc_user_text-index.sql',
'rc_patrolling' => 'patch-rc_patrol_index.sql',
);
foreach( $indexes as $index => $patch ) {
@ -1369,7 +1368,6 @@ function do_postgres_updates() {
array("archive", "archive_user_text", "(ar_user_text)"),
array("image", "img_sha1", "(img_sha1)"),
array("oldimage", "oi_sha1", "(oi_sha1)"),
array("recentchanges", "rc_patrolling", "(rc_this_oldid, rc_last_oldid, rc_patrolled)"),
array("revision", "rev_text_id_idx", "(rev_text_id)"),
);
@ -1530,4 +1528,4 @@ function do_postgres_updates() {
}
return;
}
}