key_commit: add to api control ability to change the batchsize