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

Reduce CanonicalQuery creation overhead by avoiding BSONObj creation

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization

      The investigation in PERF-5073 found that a key contributor to the regressions in the initialization of CanonicalQuery is the creation of a new BSONObj for each MatchExpression.

      By keeping alive or moving the original BSONObj, we can reduce the cost of CanonicalQuery initialization in some cases by 50%.

       

      This ticket will introduce the final change in expression_leaf.cpp and expression_leaf.h to remove the use of _backingBSON BSONObj

            Assignee:
            matt.olma@mongodb.com Matt Olma
            Reporter:
            matt.olma@mongodb.com Matt Olma
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: