r72903 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72902‎ | r72903 | r72904 >
Date:15:04, 13 September 2010
Author:greg
Status:ok
Tags:
Comment:
Add new index on pagelinkes(pl_title) per suggestion from bug 25111
Modified paths:
  • /trunk/phase3/includes/installer/PostgresUpdater.php (modified) (history)
  • /trunk/phase3/maintenance/postgres/tables.sql (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/postgres/tables.sql
@@ -169,6 +169,7 @@
170170 pl_title TEXT NOT NULL
171171 );
172172 CREATE UNIQUE INDEX pagelink_unique ON pagelinks (pl_from,pl_namespace,pl_title);
 173+CREATE INDEX pagelinks_title ON pagelinks (pl_title);
173174
174175 CREATE TABLE templatelinks (
175176 tl_from INTEGER NOT NULL REFERENCES page(page_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
Index: trunk/phase3/includes/installer/PostgresUpdater.php
@@ -173,6 +173,7 @@
174174 array( 'addPgIndex', 'image', 'img_sha1', '(img_sha1)' ),
175175 array( 'addPgIndex', 'oldimage', 'oi_sha1', '(oi_sha1)' ),
176176 array( 'addPgIndex', 'page', 'page_mediawiki_title', '(page_title) WHERE page_namespace = 8' ),
 177+ array( 'addPgIndex', 'pagelinks', 'pagelinks_title', '(pl_title)' ),
177178 array( 'addPgIndex', 'revision', 'rev_text_id_idx', '(rev_text_id)' ),
178179 array( 'addPgIndex', 'recentchanges', 'rc_timestamp_bot', '(rc_timestamp) WHERE rc_bot = 0' ),
179180 array( 'addPgIndex', 'templatelinks', 'templatelinks_from', '(tl_from)' ),

Status & tagging log