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.
(Since version 0.11.12) For legacy purpose only
Factory for the Nearest read preference.
Reads only from the primary.
Reads only from the primary. This is the default choice.
Factory for the PrimaryPreferred read preference.
Factory for the Secondary read preference.
Factory for the SecondaryPreferred read preference.
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 (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 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 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 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.
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 tag
, regardless its status (primary or secondary).
(Since version 0.11.12) Use secondaryPreferred(T*)
Reads from any node that has the given tag
in the replica set (preferably the primary).
Reads from any node that has the given tag
in the replica set (preferably the primary).
(Since version 0.11.12) Use primaryPreferred(T*)
Reads from a secondary that has the given tag
in the replica set.
Reads from a secondary that has the given tag
in the replica set.
(Since version 0.11.12) Use secondary(T*)
Reads from any node that has the given tag
in the replica set (preferably a secondary).
Reads from any node that has the given tag
in the replica set (preferably a secondary).
(Since version 0.11.12) Use secondaryPreferred(T*)