From fb9b0ca7c8e5360d9156111931b49957200a42a2 Mon Sep 17 00:00:00 2001 From: Michael Morisi Date: Fri, 14 Mar 2025 12:43:40 -0400 Subject: [PATCH 1/2] DOCSP-48323: Causal consistency feedback --- source/write/transactions.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/write/transactions.txt b/source/write/transactions.txt index dc9d4531..e96c6d6f 100644 --- a/source/write/transactions.txt +++ b/source/write/transactions.txt @@ -57,6 +57,11 @@ operations. For example, if you perform a series of operations where one operation logically depends on the result of another, any subsequent reads reflect the dependent relationship. +.. note:: + + A client session guarantees causal consistency even if it is not used within a + transaction. + The following table describes the guarantees that causally consistent sessions provide: @@ -90,7 +95,7 @@ consistent sessions provide: ``delete_one()`` to delete the retrieved document, the driver runs the find operation first. -In a causally consistent session, MongoDB ensures a causal relationship between the +In a causally consistent session, MongoDB only guarantees causal consistency between the following operations: - Read operations that have a ``majority`` read concern From 888c3943cbe393c285a39cfbc135afb4562f494a Mon Sep 17 00:00:00 2001 From: Michael Morisi Date: Fri, 14 Mar 2025 16:32:16 -0400 Subject: [PATCH 2/2] MW feedback --- source/write/transactions.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/write/transactions.txt b/source/write/transactions.txt index e96c6d6f..e069e189 100644 --- a/source/write/transactions.txt +++ b/source/write/transactions.txt @@ -59,8 +59,7 @@ reads reflect the dependent relationship. .. note:: - A client session guarantees causal consistency even if it is not used within a - transaction. + A client session enables causal consistency even if it does not perform a transaction. The following table describes the guarantees that causally consistent sessions provide: @@ -95,7 +94,7 @@ consistent sessions provide: ``delete_one()`` to delete the retrieved document, the driver runs the find operation first. -In a causally consistent session, MongoDB only guarantees causal consistency between the +In a causally consistent session, MongoDB guarantees causal consistency between only the following operations: - Read operations that have a ``majority`` read concern