Use seekForKeyValueView in Express path to get RID from index scan

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0, 8.0.0-rc5
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • v8.0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The express path uses SortedDataInterface::seek to get an IndexKeyEntry to get the RecordId; this involves allocating a BSONObj for the dehydrated index key, which we don't use. We should consider using seekForKeyValueView which returns a view over wiredtiger data that is a keystring + RID tuple. This avoids unnecessary work and may improve the performance of the express path.

            Assignee:
            Hana Pearlman
            Reporter:
            Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: