use slave for row estimate in updateCollation.php
authorBrian Wolff <bawolff+wn@gmail.com>
Tue, 10 May 2016 19:38:27 +0000 (15:38 -0400)
committerBrian Wolff <bawolff+wn@gmail.com>
Tue, 10 May 2016 19:38:27 +0000 (15:38 -0400)
commit09205b2954d00a122de74e3480c61e5b4242b6bf
tree60dc3b84084a7cb4867c27fb1b4f50e2dc4c58c3
parent44a4bdb691fa8765540560f68addf966a39438e8
use slave for row estimate in updateCollation.php

jcrespo reported a lag spike at the very beginning of running this
script. I'm guessing that's due to counting how many rows in
categorylinks to give the progress bar. Since we only need a
rough estimate for the progress meter, make that query run on
a slave. Also add a wfWaitForSlaves() immediately after it for
good measure.

Bug: T58041
Change-Id: I3cba392f0013fcb2ef86803632e2d9b1b88b3b29
maintenance/updateCollation.php