Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-8854

Sampling - secondary preferred

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.45.3
    • Affects Version/s: None
    • Component/s: None
    • 2
    • Iteration Telescope, Iteration U (Jan 27 - Feb 10)
    • Not Needed
    • Developer Tools

      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:

      https://github.com/mongodb-js/compass/blob/0f73014d264419306677ae1b1adbccbac1874539/packages/data-service/src/data-service.ts#L2625

      .collection(this._collectionName(ns), {
        readPreference: ReadPreference.SECONDARY_PREFERRED,
      });
      

       

       

            Assignee:
            rhys.howell@mongodb.com Rhys Howell
            Reporter:
            paula.stachova@mongodb.com Paula Stachova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: