MongoDB ले multi-document ACID transactions समर्थन गर्छ (replica sets को लागि v4.0 देखि, sharded clusters को लागि v4.2 देखि) — धेरै दस्तावेज/संग्रहहरु मा सञ्चालनहरु समूहबद्ध गर्दै ताकि तिनीहरु सबै सफल वा सबै असफल हुन्छन्। तथापि, MongoDB को दस्तावेज मडेल अक्सर atomic single-document सञ्चालनहरु मार्फत transactions अनावश्यक बनाउँछ।
Single-document सञ्चालनहरु पहिले नै atomic छन्
KEY POINT: operations on a SINGLE document are ALWAYS atomic in MongoDB.
→ Because related data is often EMBEDDED in one document, many operations that would
need a transaction in SQL are a single atomic document update in MongoDB.
→ Good schema design (embedding) often eliminates the NEED for multi-doc transactions.
