atomic batch updates