Add optional commit throttling
Make chunk size configurable