You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"The read preference 'hedge' option is deprecated in PyMongo 4.12+ because hedged reads are deprecated in MongoDB version 8.0+. Support for 'hedge' will be removed in PyMongo 5.0.",
"""**DEPRECATED** - The read preference 'hedge' option is deprecated in PyMongo 4.12+ because hedged reads are deprecated in MongoDB version 8.0+. Support for 'hedge' will be removed in PyMongo 5.0.
193
+
194
+
The read preference ``hedge`` parameter.
198
195
199
196
A dictionary that configures how the server will perform hedged reads.
200
197
It consists of the following keys:
@@ -329,7 +326,7 @@ class PrimaryPreferred(_ServerMode):
329
326
replication before it will no longer be selected for operations.
330
327
Default -1, meaning no maximum. If it is set, it must be at least
331
328
90 seconds.
332
-
:param hedge: The :attr:`~hedge` to use if the primary is not available.
329
+
:param hedge: **DEPRECATED** - The :attr:`~hedge` for this read preference.
333
330
334
331
.. versionchanged:: 3.11
335
332
Added ``hedge`` parameter.
@@ -371,7 +368,7 @@ class Secondary(_ServerMode):
371
368
replication before it will no longer be selected for operations.
372
369
Default -1, meaning no maximum. If it is set, it must be at least
373
370
90 seconds.
374
-
:param hedge: The :attr:`~hedge` for this read preference.
371
+
:param hedge: **DEPRECATED** - The :attr:`~hedge` for this read preference.
375
372
376
373
.. versionchanged:: 3.11
377
374
Added ``hedge`` parameter.
@@ -414,7 +411,7 @@ class SecondaryPreferred(_ServerMode):
414
411
replication before it will no longer be selected for operations.
415
412
Default -1, meaning no maximum. If it is set, it must be at least
416
413
90 seconds.
417
-
:param hedge: The :attr:`~hedge` for this read preference.
414
+
:param hedge: **DEPRECATED** - The :attr:`~hedge` for this read preference.
418
415
419
416
.. versionchanged:: 3.11
420
417
Added ``hedge`` parameter.
@@ -458,7 +455,7 @@ class Nearest(_ServerMode):
458
455
replication before it will no longer be selected for operations.
459
456
Default -1, meaning no maximum. If it is set, it must be at least
460
457
90 seconds.
461
-
:param hedge: The :attr:`~hedge` for this read preference.
458
+
:param hedge: **DEPRECATED** - The :attr:`~hedge` for this read preference.
0 commit comments