Manual:RunBatchedQuery.php/en

Details
runBatchedQuery.php file is a 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.