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

Allow agg layer to request PlanStage layer to return document

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • None
    • Query Execution
    • Query 2020-02-10, Query 2020-02-24, Query 2020-03-09, Query 2020-03-23

    Description

      When there is a finite dependency set, the query system often computes a projection on a BSONObj, returning another BSONObj. In agg, this BSONObj turned into a (lazy) Document, which again copies fields out of the BSON upon individual field access. We could avoid repeating some work if the find() layer produced a Document in these cases instead.

      Queries with no finite dependency set will continue to use the "lazy" document behavior.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: