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

Allow index use for all aggregation pipeline $match and possibly $filter stages instead of just the first stage.

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Aggregation Framework
    • None

    Description

      Not sure if this is possible but, as I understand it, indexes are only used for the first $match stage of a pipeline and then a collection scan for all the others after that.

      If possible it might be beneficial to use indexes for all $match stages and possibly $filter expressions too as they themselves can be quite powerful.

      Attachments

        Activity

          People

            mark.agarunov Mark Agarunov
            aharris Andrew Harris
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: