r38303 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38302‎ | r38303 | r38304 >
Date:16:18, 31 July 2008
Author:greg
Status:old
Tags:
Comment:
Add separate index for watchlist(wl_user) [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
@@ -365,8 +365,8 @@
366366 wl_notificationtimestamp TIMESTAMPTZ
367367 );
368368 CREATE UNIQUE INDEX wl_user_namespace_title ON watchlist (wl_namespace, wl_title, wl_user);
 369+CREATE INDEX wl_user ON watchlist (wl_user);
369370
370 -
371371 CREATE TABLE math (
372372 math_inputhash BYTEA NOT NULL UNIQUE,
373373 math_outputhash BYTEA NOT NULL,
Index: trunk/phase3/maintenance/updaters.inc
@@ -1520,6 +1520,7 @@
15211521 array("oldimage", "oi_sha1", "(oi_sha1)"),
15221522 array("revision", "rev_text_id_idx", "(rev_text_id)"),
15231523 array("recentchanges", "rc_timestamp_nobot", "(rc_timestamp) WHERE rc_bot = 0"),
 1524+ array("watchlist", "wl_user", "(wl_user)"),
15241525 );
15251526
15261527 $newrules = array(

Status & tagging log