Skip to content

Commit 1528620

Browse files
npentrelandf-mongodb
authored andcommitted
DOCS-13725 update cursor snapshot documentation
1 parent cbb7e86 commit 1528620

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
@@ -82,12 +82,12 @@ content: |
8282
indexed field on the index used by the query, then the cursor could
8383
return the same document more than once.
8484
85-
If your collection has a field or fields that are
86-
never modified, you can use a *unique* index on this field or these
87-
fields so that the query will return each document no more than
88-
once. Query with :method:`~cursor.hint()` to explicitly force the
89-
query to use that index.
90-
85+
Queries that use :ref:`unique indexes <index-type-unique>` can, in
86+
some cases, return duplicate values. If a cursor using a unique index
87+
interleaves with a delete and insert of documents sharing the same
88+
unique value, the cursor may return the same unique value twice from
89+
different documents.
90+
9191
---
9292
ref: lock-general
9393
content: |

0 commit comments

Comments
 (0)