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

Use seekForKeyValueView in Express path to get RID from index scan

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

      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@mongodb.com Hana Pearlman
            Reporter:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: