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

Extend MatchExpression to support matching Documents

    • Query
    • Fully Compatible

      A Document and a BSONObj logically represent the same thing, but the aggregation framework works with Documents instead of BSONObjs, since the former are cheaper to manipulate. A MatchExpression (used in the $match stage) only accepts a BSONObj, via matchesBSON. This means that for the $match stage, we have to convert a Document to a BSONObj to determine if it matches. We should extend the MatchExpression class to be able to match a Document so we can avoid this potentially expensive conversion.

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: