Describe the bug
If calls to write_batch_with_statistics are mixed with calls to write_batch it can lead to invalid page statistics, as they will only be computed for the data passed to write_batch.
To Reproduce
Inspect code
Expected behavior
These methods should behave consistently
Additional context
Add any other context about the problem here.