Simplify exclusivity tracking in IndexSeekPoint

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 maintain a bool _prefixExclusive and a vector of bools _suffixInclusive. What we actually need to know is whether there is an exclusive field, and if so, what is the index of the first exclusive field. This can be tracked with a single int. It's a very small change, but it allows us to simplify our checks in IndexEntryComparison::makeKeyStringFromSeekPointForSeek and leads to a modest but non-trivial speed-up in seek-heavy workloads when the index fits in memory.

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

              Created:
              Updated:
              Resolved: