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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.3.1
    • Fix Version/s: 4.3.1
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Execution Team 2019-09-09, Execution Team 2019-09-23
    • Linked BF Score:
      0

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              louis.williams Louis Williams
              Reporter:
              louis.williams Louis Williams
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: