Skip to content

DOCS-617 expand slightly the Isolation section in write-operations #375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 5, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions draft/core/write-operations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -284,16 +284,18 @@ and :doc:`/applications/indexes`.
Isolation
---------

All operations inside of a *single* MongoDB document are atomic. An
update operation may modify more than one sub-document within a single
MongoDB document (or record) in a single operation that will either
succeed or fail and cannot leave the document in an in-between state.
When a single write operation modifies multiple documents, the
operation as a whole is not atomic, and other operations may
interleave. The modification of a single document, or record, is always
atomic, even if the write operation modifies multiple sub-document
*within* the single record.

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

To isolate a sequence of write operations from other read and write
operations, see :doc:`/tutorial/perform-two-phase-commits`.

Architecture
------------
Expand Down