[Groonga-commit] droonga/droonga-engine at d7941db [master] Don't change sortBy.limit to unlimited when single slice optimization case

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Nov 6 10:19:22 JST 2014


Kouhei Sutou	2014-11-06 10:19:22 +0900 (Thu, 06 Nov 2014)

  New Revision: d7941dba4054a8efc7df346591956addda53ce6e
  https://github.com/droonga/droonga-engine/commit/d7941dba4054a8efc7df346591956addda53ce6e

  Message:
    Don't change sortBy.limit to unlimited when single slice optimization case

  Modified files:
    lib/droonga/plugins/search/distributed_search_planner.rb

  Modified: lib/droonga/plugins/search/distributed_search_planner.rb (+5 -3)
===================================================================
--- lib/droonga/plugins/search/distributed_search_planner.rb    2014-11-06 00:47:51 +0900 (aaf871d)
+++ lib/droonga/plugins/search/distributed_search_planner.rb    2014-11-06 10:19:22 +0900 (5263244)
@@ -251,10 +251,12 @@ module Droonga
               "type" => "sum",
             }
             if unifiable?
-              if @query["sortBy"].is_a?(Hash)
-                @query["sortBy"]["limit"] = UNLIMITED
+              unles****@datas*****_slice?
+                if @query["sortBy"].is_a?(Hash)
+                  @query["sortBy"]["limit"] = UNLIMITED
+                end
+                @output["limit"] = UNLIMITED
               end
-              @output["limit"] = UNLIMITED unles****@datas*****_slice?
               mapper = {
                 "target" => "records",
               }
-------------- next part --------------
HTML����������������������������...
下載 



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