Conclusion / Learn
MongoDB Transactions
In this unit, you learned that ACID transactions ensure that database operations, such as transferring funds from one account to another, happen together or not at all. You also explored how ACID transactions work with the document model in MongoDB. Finally, you learned how to create and use multi-document transactions by using the startTransaction()
and commitTransaction()
commands, and how to cancel multi-document transactions by using the abortTransaction()
command.
Resources
Use the following resources to learn more about ACID transactions in MongoDB: