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

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

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

      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@mongodb.com David Storch
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: