Include applyOpsIndex when determining sampling steps

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: Change streams
    • None
    • Query Execution
    • Fully Compatible
    • QE 2026-02-16
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-114237 introduced a new sampling mechanism for the change streams pre-images collection that is (currently) based only on timestamp value.
      The sampling mechanism as it is right now does not take the applyOpsIndex part into account when determining the steps for the sampling.
      Thus it produces suboptimal results if there are ranges in which many documents have the same timestamp value, but different applyOpsIndex values.
      The sampling algorithm should be improved to take the applyOpsIndex values into account, too.

            Assignee:
            Jan Steemann
            Reporter:
            Jan Steemann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: