Batch size

Fixes OOM issues in WriteBatch when handling large collections.