r70459 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70458‎ | r70459 | r70460 >
Date:12:40, 4 August 2010
Author:greg
Status:deferred
Tags:
Comment:
Add new partial index for Postgres
Modified paths:
  • /trunk/phase3/maintenance/postgres/tables.sql (modified) (history)
  • /trunk/phase3/maintenance/updaters.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/postgres/tables.sql
@@ -68,6 +68,7 @@
6969 CREATE INDEX page_user_title ON page (page_title) WHERE page_namespace = 2;
7070 CREATE INDEX page_utalk_title ON page (page_title) WHERE page_namespace = 3;
7171 CREATE INDEX page_project_title ON page (page_title) WHERE page_namespace = 4;
 72+CREATE INDEX page_mediawiki_title ON page (page_title) WHERE page_namespace = 8;
7273 CREATE INDEX page_random_idx ON page (page_random);
7374 CREATE INDEX page_len_idx ON page (page_len);
7475
Index: trunk/phase3/maintenance/updaters.inc
@@ -1512,13 +1512,14 @@
15131513 );
15141514
15151515 $newindexes = array(
1516 - array( "archive", "archive_user_text", "(ar_user_text)" ),
1517 - array( "image", "img_sha1", "(img_sha1)" ),
1518 - array( "oldimage", "oi_sha1", "(oi_sha1)" ),
1519 - array( "revision", "rev_text_id_idx", "(rev_text_id)" ),
1520 - array( "recentchanges", "rc_timestamp_bot", "(rc_timestamp) WHERE rc_bot = 0" ),
1521 - array( "templatelinks", "templatelinks_from", "(tl_from)" ),
1522 - array( "watchlist", "wl_user", "(wl_user)" ),
 1516+ array( "archive", "archive_user_text", "(ar_user_text)" ),
 1517+ array( "image", "img_sha1", "(img_sha1)" ),
 1518+ array( "oldimage", "oi_sha1", "(oi_sha1)" ),
 1519+ array( "page", "page_mediawiki_title", "(page_title) WHERE page_namespace = 8" ),
 1520+ array( "revision", "rev_text_id_idx", "(rev_text_id)" ),
 1521+ array( "recentchanges", "rc_timestamp_bot", "(rc_timestamp) WHERE rc_bot = 0" ),
 1522+ array( "templatelinks", "templatelinks_from", "(tl_from)" ),
 1523+ array( "watchlist", "wl_user", "(wl_user)" ),
15231524 array( "logging", "logging_user_type_time", "(log_user, log_type, log_timestamp)" ),
15241525 array( "logging", "logging_page_id_time", "(log_page,log_timestamp)" ),
15251526 array( "iwlinks", "iwl_prefix_title_from", "(iwl_prefix, iwl_title, iwl_from)" ),

Status & tagging log