Changing how batch writing is handled