Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-71839

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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Romans Kasperovics
            Reporter:
            romans.kasperovics@mongodb.com Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: