MongoDB Transactions
MongoDB recently added optional transactions (Summer 2018).
These comments apply to MongoDB without transactions.
Review of ACID:
Atomicity
- They update a single document atomically.
- For multiple documents: they claim "transaction-like"
semantics. Which appears to mean:
- Dumb evasion: Well, you can always update
multiple documents in one transaction by putting them inside
some other document.
- There's the jungle, here's a machete, good
luck: Guidelines on how to sort-of approximate an atomic update
of multiple documents.
|