API: Add IGNORE INDEX to avoid bad plan in ApiQueryRevisions
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 23 May 2019 16:58:19 +0000 (12:58 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 23 May 2019 18:22:39 +0000 (14:22 -0400)
commita3f0784b18c27f84399cafe501b71015c87076be
treede3162e6c67e864e9be73f3951c54669c0748609
parentc219f244b0a306dfd65f49b84fafcf7bfdf70b3a
API: Add IGNORE INDEX to avoid bad plan in ApiQueryRevisions

None of the queries generated by ApiQueryRevisions should be using the
`rev_timestamp` index, but MariaDB is insisting on doing so for one
particular query anyway.

Bug: T224017
Change-Id: I9476532d5896d9ba901c4c7398890bfecb1a318d
includes/api/ApiQueryRevisions.php