The PRIMARY KEY is rev_id, so this is a waste and makes the index slower to maintain (e.g. no change buffering). Bug: T142725 Change-Id: I63f817656ff5e62aa27caf607d70353cc99eb349
5 lines
161 B
SQL
5 lines
161 B
SQL
-- Makes rev_page_id index non-unique
|
|
ALTER TABLE /*_*/revision
|
|
DROP INDEX /*i*/rev_page_id;
|
|
|
|
CREATE INDEX /*i*/rev_page_id ON /*_*/revision (rev_page, rev_id);
|