rename maxPendingPersistBatches to maxPendingPersists