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

Try getNext before seek for time-series IXSCAN

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • QO 2022-03-21, QO 2022-04-04

      A query with multiple range predicates that scans a compound index can end up doing many small seeks--in the worst case it can do one seek per index entry, which is slower than scanning those same entries would be.

      Let's try calling SortedDataInterface::next(), optimistically. If we are doing few big seeks, then this shouldn't add much overhead, and if we are doing many tiny seeks it could avoid the overhead of SortedDataInterface::seek().

            Assignee:
            dan.larkin-york@mongodb.com Dan Larkin-York
            Reporter:
            samuel.mercier@mongodb.com Sam Mercier
            Votes:
            0 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: