Skip FETCH node when predicates are covered by the index in makeLeafNode

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Query Planning
    • Query Optimization
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In makeLeafNode, we always add a FETCH above the index scan when there is a filter, even if the index covers all predicates. Detecting covered cases and skipping the FETCH could improve performance.

      See planner_access.cpp:2692

            Assignee:
            Unassigned
            Reporter:
            Carlos Alonso Pérez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: