MessageCache: Avoid 'contributions' replicas
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 8 May 2017 18:00:26 +0000 (14:00 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 8 May 2017 18:00:26 +0000 (14:00 -0400)
commit6efee6f0dbe9340badbc973aa5fab8413f35a6a6
treecd29a8e217a044487e1e4ae061e784ac18b9eb4d
parentf0a80ea778057379a16e277348ab5e11d939b137
MessageCache: Avoid 'contributions' replicas

On WMF wikis, the partitioning of the revision table on the
'contributions' replicas makes the query here perform really poorly.
Specify 'api' as a hack for now to avoid those replicas.

This query happens once per day per wiki, plus when someone edits the
MediaWiki namespace, so it shouldn't be much additional load.

Bug: T164666
Change-Id: I5ae74d1702144f6475e9cfb13effc43389d66233
includes/cache/MessageCache.php