Kouhei Sutou
null+****@clear*****
Thu Jul 16 18:40:42 JST 2015
Kouhei Sutou 2015-07-16 18:40:42 +0900 (Thu, 16 Jul 2015) New Revision: cadee26c1c03daf4ecd22d02d60fcbd3e74a6b4c https://github.com/groonga/groonga/commit/cadee26c1c03daf4ecd22d02d60fcbd3e74a6b4c Message: logical_range_filter: support cache Modified files: plugins/sharding/logical_range_filter.rb Modified: plugins/sharding/logical_range_filter.rb (+18 -0) =================================================================== --- plugins/sharding/logical_range_filter.rb 2015-07-16 18:31:40 +0900 (81dda88) +++ plugins/sharding/logical_range_filter.rb 2015-07-16 18:40:42 +0900 (90c927e) @@ -56,6 +56,24 @@ module Groonga end end + private + def cache_key(input) + key = "logical_range_filter\0" + key << "#{input[:logical_table]}\0" + key << "#{input[:shard_key]}\0" + key << "#{input[:min]}\0" + key << "#{input[:min_border]}\0" + key << "#{input[:max]}\0" + key << "#{input[:max_border]}\0" + key << "#{input[:order]}\0" + key << "#{input[:filter]}\0" + key << "#{input[:offset]}\0" + key << "#{input[:limit]}\0" + key << "#{input[:output_columns]}\0" + key << "#{input[:use_range_index]}\0" + key + end + class ExecuteContext attr_reader :use_range_index attr_reader :enumerator -------------- next part -------------- HTML����������������������������...下载