MongoDB request DSL • opensavvy.ktmongo.dsl.options • ReadPreference • PrimaryPreferred
PrimaryPreferred¶
The query is sent to the primary node in the replica set. If the primary node is not available (e.g. during a failover), the operation reads from secondary nodes.
Read operations using this preference may return stale data.