Skip to content

Commit 0706716

Browse files
committed
DOCS-617 expand slightly the Isolation section in write-operations
1 parent b0ca4cd commit 0706716

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

draft/core/write-operations.txt

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -284,16 +284,18 @@ and :doc:`/applications/indexes`.
284284
Isolation
285285
---------
286286

287-
All operations inside of a *single* MongoDB document are atomic. An
288-
update operation may modify more than one sub-document within a single
289-
MongoDB document (or record) in a single operation that will either
290-
succeed or fail and cannot leave the document in an in-between state.
287+
When a single write operation modifies multiple documents, the
288+
operation as a whole is not atomic, but the modification of each
289+
document is. The modification of a single Mongo document (or record)
290+
remains atomic even if the write operation modifies more than one
291+
sub-document *within* that document.
291292

292293
No other operations are atomic; however, you can attempt to isolate a
293-
sequence of write operations from other read and write operations to
294-
prevent undesirable interactions. For more information see
295-
:doc:`Isolated write operations </reference/operator/atomic>` and
296-
:doc:`/tutorial/perform-two-phase-commits`.
294+
write operation that affects multiple documents using the :doc:`$atomic
295+
isolation operator </reference/operator/atomic>`.
296+
297+
To isolate a sequence of write operations from other read and write
298+
operations, see :doc:`/tutorial/perform-two-phase-commits`.
297299

298300
Architecture
299301
------------

0 commit comments

Comments
 (0)