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

Eliminate the trailing comma when opening "overwrite=false" index cursors

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: 4.3.1
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Execution Team 2019-09-09, Execution Team 2019-09-23
    • 0

      SERVER-42218 changed the default configuration string for normal index cursors from "overwrite=false" to the string "overwrite=false,". The difference is the trailing comma at the end.

      The WiredTiger cursor cache has an optimization to skip parsing the config string, but only if it is exactly equal to "overwrite=false". In this case, the additional comma eluded the fast-path and required WiredTiger to parse the config string for every index cursor. This introduced performance regressions on workloads that open many index cursors.

      The fix should be to construct a comma-less "overwrite=false" config string for normal index cursors.

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: