Batch links updates performed by refreshLinks jobs
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 4 May 2016 22:05:03 +0000 (15:05 -0700)
committerKrinkle <krinklemail@gmail.com>
Fri, 13 May 2016 18:31:51 +0000 (18:31 +0000)
commit4a67b170fc4d37fa137022d55664e19f5b1ca420
tree7b8f98e4d2a858a3dfe763d0b29201e82e222258
parentbb6f05fc3e184614c32c47b60428e7d0f2665159
Batch links updates performed by refreshLinks jobs

This should avoid erratic lag spikes that happen as many links are
added and removed via new pages (sometimes bot generated) and edits
that blank pages as well as their reversions.

In the common cases of a modest number of link changes, the entire
update will still happen in one transaction. In any case, link updates
now use a lock to avoid clobbering each other on the same page.

Bug: T109943
Change-Id: Icd453fcc3d28342065893260ad327eae11870245
includes/deferred/LinksDeletionUpdate.php
includes/deferred/LinksUpdate.php