Try getNext before seek for time-series IXSCAN

XMLWordPrintableJSON

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

      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
            Reporter:
            Sam Mercier
            Votes:
            0 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: