r41966 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41965‎ | r41966 | r41967 >
Date:11:45, 11 October 2008
Author:greg
Status:old (Comments)
Tags:
Comment:
Add index on templatelinks.tl_from
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
@@ -173,6 +173,7 @@
174174 tl_title TEXT NOT NULL
175175 );
176176 CREATE UNIQUE INDEX templatelinks_unique ON templatelinks (tl_namespace,tl_title,tl_from);
 177+CREATE INDEX templatelinks_from ON templatelinks (tl_from);
177178
178179 CREATE TABLE imagelinks (
179180 il_from INTEGER NOT NULL REFERENCES page(page_id) ON DELETE CASCADE,
Index: trunk/phase3/maintenance/updaters.inc
@@ -1547,6 +1547,7 @@
15481548 array("oldimage", "oi_sha1", "(oi_sha1)"),
15491549 array("revision", "rev_text_id_idx", "(rev_text_id)"),
15501550 array("recentchanges", "rc_timestamp_nobot", "(rc_timestamp) WHERE rc_bot = 0"),
 1551+ array("templatelinks", "templatelinks_from", "(tl_from)"),
15511552 array("watchlist", "wl_user", "(wl_user)"),
15521553 );
15531554
@@ -1749,7 +1750,7 @@
17501751 # This is create or replace, so harmless to call if not needed
17511752 dbsource(archive('patch-ts2pagetitle.sql'));
17521753
1753 - ## If the server is 8.3 or higher, rewrite teh tsearch2 triggers
 1754+ ## If the server is 8.3 or higher, rewrite the tsearch2 triggers
17541755 ## in case they have the old 'default' versions
17551756 if ( $numver >= 8.3 )
17561757 dbsource(archive('patch-tsearch2funcs.sql'));

Comments

#Comment by Voice of All (talk | contribs)   18:10, 11 October 2008

Wow, this is late ;)

Status & tagging log