as one logical unit of work. All reads and writes in a transaction are treated as a single unit, giving you an all-or-nothing guarantee. In other words, either everything succeeds (commit), or it is as if nothing happened (rollback). 5
as one logical unit of work. All reads and writes in a transaction are treated as a single unit, giving you an all-or-nothing guarantee. Wrap multiple queries in BEGIN ~ COMMIT In other words, either everything succeeds (commit), or it is as if nothing happened (rollback). 6
1 to the current counter So we want this: • 43 right after User 1 commits • 44 right after User 2 commits * https://www.oreilly.co.jp/books/9784873118703/ 14