Add 'canAppearOnlyOnce' stage constraint and stage-specific position check

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.0.0-rc0, 6.0.7
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v6.0
    • QE 2023-02-06, QE 2023-02-20
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      This impacts $geoNear and $unpackBucket stages.

      Until now $unpackBucket was the only stage that can appear only once. With introduction of the $changeStreamSplitLargeEvents stage, both stages should use the same constraint enforcement mechanism.

      Until now $geoNear stage was the only stage using special position requirement 'kFirstAfterOptimization'. $changeStreamSplitLargeEvents needs yet another special position check after optimization, so we will generalize this approach.

            Assignee:
            Romans Kasperovics
            Reporter:
            Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: