Hedged Read Option¶
With hedged reads, the
mongos instances can route read
operations to two replica set members per each queried shard and return
results from the first respondent per shard.
Hedged reads are supported for the following operations:
To specify hedged read for a read preference, MongoDB 4.4 introduces the hedged read option for read preferences.
Enable Hedged Reads¶
To use hedged reads, enable the hedge read option for non-
read preferences. Read preference
nearest specifies hedged
read by default.
For more information on hedged reads, see Hedged Reads.
Member Selection with Hedged Reads¶
For details on member selection for hedged reads, see Read Preference and Shards.