Do not call Explain::getPlanSummary on every insert/update, or eliminate its allocating behavior

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • 3.0.0-rc6
    • Affects Version/s: 2.8.0-rc2
    • Component/s: Querying, Write Ops
    • None
    • Fully Compatible
    • ALL
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      Explain::getPlanSummary generates a new std::string of moderate size, and the heap allocation and freeing around the lifetime of that string are an unnecessary performance hit on hot code paths such as CRUD operations. If we're going to keep doing it, we need to make it closer to free. Better might be not to generate the summary string in the common case.

            Assignee:
            David Storch
            Reporter:
            Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: