Navigation Menu

Skip to content

Commit

Permalink
logical_range_filter: remove GRN_LOGICAL_RANGE_FILTER_ENABLED
Browse files Browse the repository at this point in the history
Use GRN_LOGICAL_RANGE_FILTER_THRESHOLD=0 to disable range index search
feature.
  • Loading branch information
kou committed Apr 2, 2015
1 parent 489e802 commit 210b7d3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions plugins/sharding/logical_range_filter.rb
Expand Up @@ -255,8 +255,6 @@ def build_expression_partial_min_and_max(expression)
end

def use_range_index?(range_index)
return false unless ENV["GRN_LOGICAL_RANGE_FILTER_ENABLED"] == "yes"

required_n_records = @context.current_offset + @context.current_limit
max_n_records = @table.size
if max_n_records <= required_n_records
Expand Down

0 comments on commit 210b7d3

Please sign in to comment.