+++ /dev/null
--- 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` );
\ No newline at end of file
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 (
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*/;
$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 ) {
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)"),
);
}
return;
-}
\ No newline at end of file
+}