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

XMLWordPrintableJSON

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

      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:
              [DO NOT USE] Backlog - Query Optimization
              Reporter:
              Benjamin Murphy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: