Transactions in MongoDB
noun
say it: “tran-ZAK-shunz in MONG-goh-DEE-BEE” /trænˈzækʃənz ɪn ˈmɑŋɡoʊˌdiˌbi/
A group of changes in MongoDB, to one or more documents or collections, that all succeed together or are all undone.
What is Transactions in MongoDB?
MongoDB supports multi-document transactions, so several changes succeed or fail together. With good embedding, most writes don't need them.
In a sentence
- “Checkout uses transactions in MongoDB so the order and the stock change together.”
- “A single-document write is already all-or-nothing, so the shop needs transactions in MongoDB only for changes across documents.”
Level: Freelancer · More MongoDB terms at this level
Updated