Method: NoSE::Plans::QueryPlanTree#select_using_indexes

Defined in:
lib/nose/plans/query_planner.rb

#select_using_indexes(indexes) ⇒ Object

Select all plans which use only a given set of indexes



98
99
100
101
102
103
104
105
# File 'lib/nose/plans/query_planner.rb', line 98

def select_using_indexes(indexes)
  select do |plan|
    plan.all? do |step|
      !step.is_a?(Plans::IndexLookupPlanStep) ||
        indexes.include?(step.index)
    end
  end
end