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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Querying
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-query-execution Backlog - Query Execution
              Reporter:
              scotthernandez Scott Hernandez
              Participants:
              Votes:
              5 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated: