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

    • Query Optimization
    • Fully Compatible
    • Query 12 (04/04/16)

      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.

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

              Created:
              Updated: