API: More avoiding MySQL filesorts in list=allpages
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 24 Aug 2015 16:12:16 +0000 (12:12 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 24 Aug 2015 16:12:16 +0000 (12:12 -0400)
commitcdaa984197be12640ff7c9003f00988379b8f388
treeb1408ab8aafdf5eef2663a5b3520374982db252d
parent0ee60872035b5eb327100c48bd73301d3ec3a22e
API: More avoiding MySQL filesorts in list=allpages

For some reason, slaves but not masters are filesorting on the query
here. So add another special case for MySQL to vary the query in a
manner that makes both happy.

Bug: T78276
Change-Id: I4d0c48e7c28f6a6b2e8c317275d15301bf158f03
includes/api/ApiQueryAllPages.php