This table has eight indexes plus PK. It has around 1000 rows only. Even if it needs these indexes (which it doesn't), they are still useless. Looking at the code, the only potential useful index is the one on site_global_key, they are showing up in the report of unused indexes in the db and I checked with Fandom (which might benefit from an index on this table) and they said they don't use sites table. Bug: T342856 Change-Id: I06b3db0f33bd35bfa68f4b418d8c2f4b9b988409
11 lines
527 B
SQL
11 lines
527 B
SQL
-- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
|
|
-- Source: maintenance/abstractSchemaChanges/patch-sites-drop_indexes.json
|
|
-- Do not modify this file directly.
|
|
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
|
|
DROP INDEX site_type ON /*_*/sites;
|
|
DROP INDEX site_group ON /*_*/sites;
|
|
DROP INDEX site_source ON /*_*/sites;
|
|
DROP INDEX site_language ON /*_*/sites;
|
|
DROP INDEX site_protocol ON /*_*/sites;
|
|
DROP INDEX site_domain ON /*_*/sites;
|
|
DROP INDEX site_forward ON /*_*/sites;
|