As you can see in the screenshot below, when the assessment parser function was embedded in the master assessment template on English Wikivoyage, it caused a large spike in database inserts and some short-lived spikes in database lag (up to 5 seconds):
This was deemed unacceptable by the DBAs, so we need to find a way to smooth out these spikes before we can roll-out PageAssessments to English Wikipedia.
There are at least 3 possible solutions here:
- Slow down the automatic reparsing of pages when their caches are invalidated by template edits
- Slow down the processing of the refreshLinks job (by changing how it is handled by the job runner or changing how all low priority jobs are handled)
- Move PageAssessments database interactions back to their own job and make sure the job runner runs that job slowly (perhaps by creating a new 3rd class job designation).
This isn't really a new problem, but is the same sort of database interaction that arises from adding a category or link into a heavily used template, so I'm guessing that solutions #1 or #2 are going to be preferable. I'm looking for advice from the Performance-Team on the best way forward, and depending on the choice, help implementing that solution.

