For MediaWiki (recent comments | status changes | tags | authors | states | release notes | statistics)
Surely this can be refactored to be nicer, e.g. with a boolean $commit parameter to batchInsert() ?
Looks good otherwise.
I really considered that at first (but using a string not a bool), but the function would be littered with if ( $commit == "nocommit" ) all over the place and it seemed better to just make a separate function. The duplication is minuscule.
if ( $commit == "nocommit" )
Still needs phase3 merge