describe why you'd call writegroup and recordbatch rather than multiple writes or records