Why use a transaction for related writes?
Reveal the answer and explore the explanation.
08MediumWhy use a transaction for related writes?
Answer
Medium
Why use a transaction for related writes?
Answer
Groups operations into an atomic unit with defined isolation semantics.
Practical example
Save an attempt and its answers together or neither.
Reference: Further reading ↗