Skip to content

Commit 3fd210e

Browse files
committed
edit
1 parent 264d478 commit 3fd210e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

source/crud/read-write-pref.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -278,14 +278,14 @@ the member with the lower ``operationCount`` value to receive the request.
278278
Local Threshold
279279
```````````````
280280

281-
If multiple replica-set members match the read preference and tag sets you specify,
282-
the {+php-library+} reads from the nearest replica-set members, chosen according to
283-
their ping time.
284-
285-
By default, the library uses only members whose ping times are within 15 milliseconds
286-
of the nearest member for queries. To distribute reads between members with
287-
higher latencies, pass an options array to the ``MongoDB\Client`` constructor that
288-
sets the ``localThresholdMS`` option.
281+
The {+library-short+} uses the local threshold value to calculate the
282+
latency window for server selection. This value determines the servers
283+
that are eligible to receive read and write requests.
284+
285+
By default, the driver uses only mongos instances or replica set members whose
286+
ping times are within 15 milliseconds of the nearest server. To
287+
distribute reads among servers with higher latencies, pass an options array to
288+
the ``MongoDB\Client`` constructor that sets the ``localThresholdMS`` option.
289289

290290
The following example specifies a local threshold of 35 milliseconds:
291291

0 commit comments

Comments
 (0)