Reads from the faster node (e.g.
Reads from the faster node (e.g. the node which replies faster than all others), regardless its status (primary or secondary).
Reads from the primary if it is available, or secondaries if it is not.
Reads only from any secondary.
Reads from any secondary, or from the primary if they are not available.
Reads only from the primary.
Reads only from the primary. This is the default choice.
Extractor for taggable read preference.
Reads from the fastest node (e.g.
Reads from the fastest node (e.g. the node which replies faster than all others) that has the given tagSet
, regardless its status (primary or secondary).
Reads from the fastest node (ie the node which replies faster than all others), regardless its status (primary or secondary).
Reads only from the primary.
Reads only from the primary. This is the default choice.
Reads from any node that has the given tagSet
in the replica set (preferably the primary).
Reads from the primary if it is available, or secondaries if it is not.
Reads from a secondary that has the given tagSet
in the replica set.
Reads only from any secondary.
Reads from any node that has the given tagSet
in the replica set (preferably a secondary).
Reads from any secondary, or from the primary if they are not available.