API: Force indexes for prop=linkshere|transcludedin|fileusage
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 30 Jun 2016 17:48:38 +0000 (13:48 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 30 Jun 2016 17:53:49 +0000 (13:53 -0400)
commit17b837d725b8b7388fcf1d61286841f7469beee3
tree93df2d3cdd84b9f919b0ba11f77aee789ebc4411
parentd5334fe0362de2a8181cf8c47e02f009ec9bbcd1
API: Force indexes for prop=linkshere|transcludedin|fileusage

MySQL's optimizer chokes if we have too many values in "$bl_title IN
(...)" and chooses the wrong index, so specify the correct index to use
for the query.

Bug: T139056
Change-Id: I989dfbe898b75d649c22e198a6fbdd3a2de196e5
includes/api/ApiQueryBacklinksprop.php