Hi Dan.
I think that this forum thread, between @hugetim, @meredydd, and @stucork a couple years ago, implies an answer (yes, you’d need to use a context manager to treat batch updates as a single, all-or-nothing transaction) and provides additional info with respect to implementation.