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

asAggregationCommand() methods should return an AggregationRequest, not a BSONObj

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Querying
    • Labels:

      Description

      For read-only non-materialized views, count, distinct, and find commands must be converted into their equivalent aggregation commands. This is accomplished with CountRequest::asAggregationCommand(), ParsedDistinct::asAggregationCommand(), and QueryRequest::asAggregationCommand(). All three return a StatusWith<BSONObj>, which we almost always parse immediately into an AggregationRequest. For performance and simplicity, we should change these methods to return a StatusWith<AggregationRequest> directly.

        Attachments

          Activity

            People

            Assignee:
            backlog-server-query Backlog - Query Team
            Reporter:
            david.storch David Storch
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated: