It seems that batch write can fail mid-batch. It would be nice if write operation returned number of entries written successfully.