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

Use next() instead of seek() in column index stage when possible

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • QE 2022-09-19, QE 2022-10-03

      There are a number of places in the column index stage where we call seek() unconditionally. In the special (and common) case where the cursor is positioned at the RID before the RID we'd seek to, we can call next() instead.

      Here's one place (for row store fallback).

      Here's another (used in parent path lookup).

            Assignee:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Reporter:
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: