Skip to content

Commit a8f23e8

Browse files
npentrelandf-mongodb
authored andcommitted
DOCS-13725 update cursor snapshot documentation
1 parent 720e888 commit a8f23e8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/includes/extracts-concurrency-consistency-recency.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ content: |
106106
change the indexed field on the index used by the query; then the
107107
cursor will return the same document more than once.
108108
109-
If your collection has a field or fields that are
110-
never modified, you can use a *unique* index on this field or these
111-
fields so that the query will return each document no more than
112-
once. Query with :method:`~cursor.hint()` to explicitly force the
113-
query to use that index.
114-
109+
Queries that use :ref:`unique indexes <index-type-unique>` can, in
110+
some cases, return duplicate values. If a cursor using a unique index
111+
interleaves with a delete and insert of documents sharing the same
112+
unique value, the cursor may return the same unique value twice from
113+
different documents.
114+
115115
---
116116
ref: lock-general
117117
content: |

0 commit comments

Comments
 (0)