Kouhei Sutou
null+****@clear*****
Mon Sep 29 23:07:46 JST 2014
Kouhei Sutou 2014-09-29 23:07:46 +0900 (Mon, 29 Sep 2014) New Revision: b381df351a8eb413ac5976964d2b50ce96deed46 https://github.com/groonga/groonga/commit/b381df351a8eb413ac5976964d2b50ce96deed46 Message: mrb: don't optimize non indexed query Modified files: lib/mrb/scripts/scan_info_builder.rb Modified: lib/mrb/scripts/scan_info_builder.rb (+6 -1) =================================================================== --- lib/mrb/scripts/scan_info_builder.rb 2014-09-29 23:03:12 +0900 (7098d85) +++ lib/mrb/scripts/scan_info_builder.rb 2014-09-29 23:07:46 +0900 (5e258e9) @@ -270,7 +270,12 @@ module Groonga return false if !(lower_condition?(op) or lower_condition?(next_op)) return false if !(upper_condition?(op) or upper_condition?(next_op)) - data.args[0] == next_data.args[0] and data.indexes == next_data.indexes + return false if data.args[0] != next_data.args[0] + + data_indexes = data.indexes + return false if data_indexes.empty? + + data_indexes == next_data.indexes end def lower_condition?(operator) -------------- next part -------------- HTML����������������������������...Descargar