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

Simplify exclusivity tracking in IndexSeekPoint

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • QO 2022-04-04

    Description

      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.

      Attachments

        Activity

          People

            dan.larkin-york@mongodb.com Dan Larkin-York
            dan.larkin-york@mongodb.com Dan Larkin-York
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: