Search⌘ K

Introduction to Transactions and the Multi Module

Learn about transactions and their behavior.

Grouping operations

Throughout this course, we’ve been working with one database operation at a time. However, there are times when we have multiple operations that need to be treated as a group—they all need to succeed or fail together.

Example

A classic example is transferring money between two bank accounts. If we want to transfer $10 from Bob’s account and put it in Alice’s account (it’s always Bob and ...