MongoDB బహుళ-డాక్యుమెంట్ ACID ట్రాన్జాక్షన్లను సమర్థిస్తుంది (replica సెట్ల కోసం v4.0 నుండి, sharded క్లస్టర్ల కోసం v4.2 నుండి) — బహుళ డాక్యుమెంట్లు/కలెక్షన్ల అంతటా ఆపరేషన్లను గ్రూప్ చేస్తుంది కాబట్టి అవన్నీ విజయవంతమవుతాయి లేదా అవన్నీ విఫలమవుతాయి. అయితే, MongoDB యొక్క డాక్యుమెంట్ మోడల్ తరచుగా ఎకైక డాక్యుమెంట్ ఆపరేషన్ల ద్వారా అణువు ఆపరేషన్ల ద్వారా ట్రాన్జాక్షన్లను అనవసరమైనది చేస్తుంది.
ఎకైక-డాక్యుమెంట్ ఆపరేషన్లు ఇప్పటికే అణువు
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.
