node
backend
database
alpha

Bulk update: all or nothing

Author: Ireneusz Pliƛ

Problem context

There is a functionality in our system that allows users to do an update on many elements in one go. We get a list of element IDs and we have to respond either with success or error.

In this case, we have the all or nothing rule. The problem is that we want to be sure that all of the elements were updated (there is no missing record and the condition is met for all elements) or nothing is touched at all.