wiki.techinc.nl/maintenance/archives/patch-backlinkindexes.sql
umherirrender 271da88127 Some bugzilla.wikimedia.org -> phabricator.wikimedia.org changes
Changed some old bugzilla links to new phabricator links in comments,
test data and error message. This reduces the need for redirects from
old bugzilla to new phabricator from our source code.

Change-Id: Id98278e26ce31656295a23f3cadb536859c4caa5
2015-09-24 17:17:25 +02:00

19 lines
514 B
SQL

--
-- patch-backlinkindexes.sql
--
-- Per task T8440 / https://phabricator.wikimedia.org/T8440
--
-- Improve performance of the "what links here"-type queries
--
ALTER TABLE /*$wgDBprefix*/pagelinks
DROP INDEX pl_namespace,
ADD INDEX pl_namespace(pl_namespace, pl_title, pl_from);
ALTER TABLE /*$wgDBprefix*/templatelinks
DROP INDEX tl_namespace,
ADD INDEX tl_namespace(tl_namespace, tl_title, tl_from);
ALTER TABLE /*$wgDBprefix*/imagelinks
DROP INDEX il_to,
ADD INDEX il_to(il_to, il_from);