Manual:RunBatchedQuery.php

Details
runBatchedQuery.php file is a maint-scripts>Special:MyLanguage/Manual:Maintenance scripts|maintenance script to run a database query in batches and wait for replica DBs. This is used on large wikis to prevent replication lag from going through the roof when executing large write queries.

Options
runBatchedQuery.php accepts six options.