destroy rc_patrolling index, no removers added, I hope not that many people did run...
authorDomas Mituzas <midom@users.mediawiki.org>
Wed, 5 Sep 2007 08:14:18 +0000 (08:14 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Wed, 5 Sep 2007 08:14:18 +0000 (08:14 +0000)
maintenance/archives/patch-rc_patrol_index.sql [deleted file]
maintenance/postgres/tables.sql
maintenance/tables.sql
maintenance/updaters.inc

diff --git a/maintenance/archives/patch-rc_patrol_index.sql b/maintenance/archives/patch-rc_patrol_index.sql
deleted file mode 100644 (file)
index d706272..0000000
+++ /dev/null
@@ -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` );
\ No newline at end of file
index 6f91efa..360dd9c 100644 (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 (
index 7477e5b..72a779a 100644 (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*/;
 
index aeab487..3527d5e 100644 (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;
-}
\ No newline at end of file
+}