ReadPreferenceOptions | mongodb (original) (raw)

Interface ReadPreferenceOptions

interface ReadPreferenceOptions {
hedge?: HedgeOptions;
maxStalenessSeconds?: number;
}

Hierarchy (view full)

Index

Properties

hedge? maxStalenessSeconds?

Properties

Optionalhedge

hedge?: HedgeOptions

Server mode in which the same query is dispatched in parallel to multiple replica set members.

OptionalmaxStalenessSeconds

maxStalenessSeconds?: number

Max secondary read staleness in seconds, Minimum value is 90 seconds.