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

$match should be moved into the query field of the $geoNear stage, where possible

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Query 12 (04/04/16)

      Description

      As part of SERVER-4506, the $geoNear stage accepts a 'query' parameter which is an additional filter to apply to results returned from the geoNear. In a pipeline that has a $geoNear stage followed by a $match stage, we should set the query parameter of the geoNear to the $match, which pushes the matching logic down into the query subsystem.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-query-optimization Backlog - Query Optimization
              Reporter:
              benjamin.murphy Benjamin Murphy
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated: