-
Type:
Task
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
As a quick-win measure to limit the effect of data analysis on the primary, the sampling will be done with secondaryPreferred read option.
The readPreference can be passed to the driver here:
.collection(this._collectionName(ns), {
readPreference: ReadPreference.SECONDARY_PREFERRED,
});