help wantedstatus/deferredtopic/perf
Description
Specifically, tune the ParallelBatchCommits constant added in #4296. Right now, we just use NumCPU*2 but we could probably do something fancier (learn it? does the datastore matter? does the storage medium matter? how about the filesystem?).
We may never get to this but hey, if anyone wants to spend some time experimenting they're free to take a crack at it.