[Groonga-commit] groonga/groonga at 1c6f42d [master] logical_range_filter: disable range index by default

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Mar 31 13:31:03 JST 2015


Kouhei Sutou	2015-03-31 13:31:03 +0900 (Tue, 31 Mar 2015)

  New Revision: 1c6f42d1b461e0edf2617774216e6fad869c6b27
  https://github.com/groonga/groonga/commit/1c6f42d1b461e0edf2617774216e6fad869c6b27

  Message:
    logical_range_filter: disable range index by default

  Modified files:
    plugins/sharding/logical_range_filter.rb

  Modified: plugins/sharding/logical_range_filter.rb (+2 -0)
===================================================================
--- plugins/sharding/logical_range_filter.rb    2015-03-30 21:47:47 +0900 (3cb9abc)
+++ plugins/sharding/logical_range_filter.rb    2015-03-31 13:31:03 +0900 (32fdb77)
@@ -255,6 +255,8 @@ module Groonga
         end
 
         def use_range_index?(range_index)
+          return false unless ENV["GRN_LOGICAL_RANGE_FILTER_ENABLED"] == "yes"
+
           required_n_records =****@conte*****_offset +****@conte*****_limit
           max_n_records =****@table*****
           if max_n_records <= required_n_records
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index