ApiQueryUserContribs: Only use 'contributions' replica if querying by user ID
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 21 Feb 2019 15:47:07 +0000 (10:47 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 21 Feb 2019 16:47:11 +0000 (11:47 -0500)
commitfe65f68588638d9f067580a341f8de3d3a85394f
treea269eb444d73bc1f2108f3b212db96bb3cde4b5e
parent1900a8a12e8e1445fa8b9cca46a89354fcc88f1d
ApiQueryUserContribs: Only use 'contributions' replica if querying by user ID

When querying by user name or actor ID, the partitioning on the
'contributions' replicas makes things worse rather than better.

Bug: T216656
Change-Id: Ib4caf19d8fad64c527dee99667e425fd3e4b1a16
includes/api/ApiQueryUserContribs.php