Add wl_user_notificationtimestamp index
Bug: 65246 Change-Id: If3e9e855c8a21874ca69c4976af207833dcc53f2
This commit is contained in:
parent
c0b0a12eab
commit
c396f11ab3
6 changed files with 9 additions and 0 deletions
|
|
@ -254,6 +254,7 @@ class MysqlUpdater extends DatabaseUpdater {
|
|||
// 1.24
|
||||
array( 'addField', 'page_props', 'pp_sortkey', 'patch-pp_sortkey.sql' ),
|
||||
array( 'dropField', 'recentchanges', 'rc_cur_time', 'patch-drop-rc_cur_time.sql' ),
|
||||
array( 'addIndex', 'watchlist', 'wl_user_notificationtimestamp', 'patch-watchlist-user-notificationtimestamp-index.sql' ),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -250,6 +250,7 @@ class PostgresUpdater extends DatabaseUpdater {
|
|||
array( 'addPgIndex', 'recentchanges', 'rc_timestamp_bot', '(rc_timestamp) WHERE rc_bot = 0' ),
|
||||
array( 'addPgIndex', 'templatelinks', 'templatelinks_from', '(tl_from)' ),
|
||||
array( 'addPgIndex', 'watchlist', 'wl_user', '(wl_user)' ),
|
||||
array( 'addPgIndex', 'watchlist', 'wl_user_notificationtimestamp', '(wl_user, wl_notificationtimestamp)' ),
|
||||
array( 'addPgIndex', 'logging', 'logging_user_type_time',
|
||||
'(log_user, log_type, log_timestamp)' ),
|
||||
array( 'addPgIndex', 'logging', 'logging_page_id_time', '(log_page,log_timestamp)' ),
|
||||
|
|
|
|||
|
|
@ -132,6 +132,7 @@ class SqliteUpdater extends DatabaseUpdater {
|
|||
// 1.24
|
||||
array( 'addField', 'page_props', 'pp_sortkey', 'patch-pp_sortkey.sql' ),
|
||||
array( 'dropField', 'recentchanges', 'rc_cur_time', 'patch-drop-rc_cur_time.sql' ),
|
||||
array( 'addIndex', 'watchlist', 'wl_user_notificationtimestamp', 'patch-watchlist-user-notificationtimestamp-index.sql' ),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
--
|
||||
-- Creates the wl_user_notificationtimestamp index for the watchlist table
|
||||
--
|
||||
CREATE INDEX /*i*/wl_user_notificationtimestamp ON /*_*/watchlist (wl_user, wl_notificationtimestamp);
|
||||
|
|
@ -448,6 +448,7 @@ CREATE TABLE watchlist (
|
|||
);
|
||||
CREATE UNIQUE INDEX wl_user_namespace_title ON watchlist (wl_namespace, wl_title, wl_user);
|
||||
CREATE INDEX wl_user ON watchlist (wl_user);
|
||||
CREATE INDEX wl_user_notificationtimestamp ON watchlist (wl_user, wl_notificationtimestamp);
|
||||
|
||||
|
||||
CREATE TABLE interwiki (
|
||||
|
|
|
|||
|
|
@ -1129,6 +1129,7 @@ CREATE TABLE /*_*/watchlist (
|
|||
|
||||
CREATE UNIQUE INDEX /*i*/wl_user ON /*_*/watchlist (wl_user, wl_namespace, wl_title);
|
||||
CREATE INDEX /*i*/namespace_title ON /*_*/watchlist (wl_namespace, wl_title);
|
||||
CREATE INDEX /*i*/wl_user_notificationtimestamp ON /*_*/watchlist (wl_user, wl_notificationtimestamp);
|
||||
|
||||
|
||||
--
|
||||
|
|
|
|||
Loading…
Reference in a new issue