Make updateCollation.php a bit less murderous for WMF databases:
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 8 Mar 2011 16:47:26 +0000 (16:47 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 8 Mar 2011 16:47:26 +0000 (16:47 +0000)
commitff6fec1e6fa2cd3741125cd3b8538443940cf36b
treed83176f5d0ea3b850723ce2a87496286606fa352
parent0bcd541e5556efca8375eaa73f5e1e94fa4ef4e8
Make updateCollation.php a bit less murderous for WMF databases:
* Don't run a COUNT(*) query on what's potentially the entire categorylinks table on enwiki (hundreds of millions of rows). Put it in a miser mode check
* Wait for DB replication to catch up before processing the next batch. Implemented LoadBalancer::waitAll() for this purpose, which should behave more nicely than wfWaitForSlaves()
includes/db/LoadBalancer.php
maintenance/updateCollation.php