lib/kwery/planner/index_matcher.rb
# assume we are matching against the whole index
# in the future we should check which fields of
# the index are actually used by the sargs
assume we are matching against the whole index
in the future we should check which fields of
the index are actually used by the sargs
assume we are matching against the whole index in the future we should check which fields of the index are actually used by the sargs
def recheck?(indexed_exprs)
        query_exprs = eq_exprs.keys.to_set + neq_exprs.keys.to_set
        remaining_exprs = query_exprs - indexed_exprs.map(&:expr)
        remaining_exprs.size > 0
      end
def recheck? ( indexed_exprs ) query_exprs = eq_exprs . keys . to_set + neq_exprs . keys . to_set remaining_exprs = query_exprs - indexed_exprs . map ( & :expr ) remaining_exprs . size > 0 end
assume we are matching against the whole index
in the future we should check which fields of
the index are actually used by the sargs
assume we are matching against the whole index in the future we should check which fields of the index are actually used by the sargs
indexed_exprs