Add support for batch updates based on byte size instead of record count

Instead of record count, one should be able to specify a buffer size to flush at.