Skip to content

MongoDB request DSLopensavvy.ktmongo.dsl.optionsReadPreferenceNearest

Nearest

The driver reads from a member whose network latency falls within the acceptable latency window. The driver does not take into account whether that member is a primary or secondary.

Set this mode to minimize the effect of network latency on read operations without preference for current or stale data.

Read operations using this preference may return stale data.

External resources

Properties

bsonName

name

val name: String

ordinal

val ordinal: Int