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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Backlog
    • Minor - P4
    • Resolution: Unresolved
    • None
    • None
    • Querying
    • None
    • Query Execution

    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

              backlog-query-execution Backlog - Query Execution
              scotthernandez Scott Hernandez (Inactive)
              Votes:
              5 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated: