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

Avoid constructing transient vector<BSONElement> when lexing input pipelines

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Query 2020-09-07, Query 2020-09-21

      Using the Array() method on a BSONElement results in a construction of a separate vector which we use to iterate and lex. This can be avoided by using embeddedObject() where the fieldnames are the indexes of the array.

            Assignee:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Reporter:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: