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

Enforce restriction that $indexStats is the first pipeline stage

    XMLWordPrintableJSON

Details

    • Minor Change

    Description

      Currently the aggregation framework does not enforce any restrictions on the position of the new $indexStats stage within the aggregation pipeline. Since there are currently no uses cases for $indexStats being anything but the first stage in the pipeline, it may make sense for the server to report an error if it's not the first stage.

      This is similar to what is done with $out, which is currently required to be the last stage in the pipeline.

      We can always relax the restriction in the future if new stages are added which make sense to go before $indexStats

      Attachments

        Activity

          People

            james.wahlin@mongodb.com James Wahlin
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: