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

Improve performance of QueryPlannerIXSelect::getFields()

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • None
    • Fully Compatible
    • 0

    Description

      QueryPlannerIXSelect::getFields() performs expensive string creation and concatenation operations. This can be avoided for queries that don't involve $elemMatch as the string returned is the same as stored in the MatchExpression.

      Identified as a hotspot by running the Queries.RegexPrefixFindOne mongo-perf test (in read command mode) under VTune.

      Attachments

        Activity

          People

            james.wahlin@mongodb.com James Wahlin
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: