-
Type: Bug
-
Resolution: Won't Do
-
Priority: Trivial - P5
-
Affects Version/s: None
-
Labels:
-
Environment:
*Location*: https://docs.mongodb.com/manual/core/data-model-operations/
*User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
*Referrer*: https://docs.mongodb.com/manual/core/data-model-design/
*Screen Resolution*: 1366 x 768
-
0.1
Atomicity
In MongoDB, operations are atomic at the document level. No single write operation can change more than one document. Operations that modify more than a single document in a collection still operate on one document at a time. [1] Ensure that your application stores all fields with atomic dependency requirements in the same document. If the application can tolerate non-atomic updates for two pieces of data, you can store these data in separate documents (*Collections*).