Skip to content

DOCSP-51320: Document causal consistency #108

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 3 commits into from
Jul 9, 2025
Merged
Changes from 2 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
29 changes: 29 additions & 0 deletions source/crud/transactions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,35 @@ creating a new client each time.
``ClientSession`` with a different ``MongoClient`` results in operation
errors.

Causal Consistency
~~~~~~~~~~~~~~~~~~

.. sharedinclude:: dbx/causal-consistency.rst

.. replacement:: insert-one-method

``insertOne()``

.. replacement:: update-one-method

``updateOne()``

.. replacement:: find-one-method

``find()``

.. replacement:: delete-one-method

``deleteOne()``

.. replacement:: ReadConcern.MAJORITY

``majority``

.. replacement:: WriteConcern.MAJORITY

``majority``
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[i] I don't think these are rendering correctly (if I'm looking in the correct section in the preview). Should this be adding majority to the bullet points about read concern and write concern in the requirements list? In the Java docs the replacement variables are majority-rc and majority-wc so maybe that needs an update here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦 I put the values in the variable name slot


Sample Data
~~~~~~~~~~~

Expand Down
Loading