Do not materialize key twice in WiredTigerIndexCursorBase::seek

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • QO 2022-04-04
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently we materialize the key in the internal call to seekForKeyString(...), discard the result, and materialize the key again using curr(...). A simple refactoring would allow us not to duplicate work. This should lead to a modest, but non-trivial performance improvement, at least for workloads where the index fits in memory. If the index entries need to be read from disk, then the cost of the extra materialization is rendered trivial.

            Assignee:
            Dan Larkin-York
            Reporter:
            Dan Larkin-York
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: