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

Stop processing bson fields in projection.transform after projections met (esp. _id)

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Query Execution

      Currently the projection code loops through all the fields even if the projections have been satisfied. This leads to more reads (and possible page faults) than are needed to fullfil the projection.

      It would be good to shortcut this esp. for _id when just wanting to return that.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: