[Groonga-commit] droonga/fluent-plugin-droonga at ca0bd00 [master] Add comment-outed experimental code

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Nov 7 15:18:35 JST 2013


YUKI Hiroshi	2013-11-07 15:18:35 +0900 (Thu, 07 Nov 2013)

  New Revision: ca0bd00e8c857ce3780d21e471d0f19a7bbb857f
  https://github.com/droonga/fluent-plugin-droonga/commit/ca0bd00e8c857ce3780d21e471d0f19a7bbb857f

  Message:
    Add comment-outed experimental code

  Modified files:
    lib/droonga/watcher.rb

  Modified: lib/droonga/watcher.rb (+12 -0)
===================================================================
--- lib/droonga/watcher.rb    2013-11-07 14:43:38 +0900 (664648a)
+++ lib/droonga/watcher.rb    2013-11-07 15:18:35 +0900 (a421489)
@@ -189,6 +189,18 @@ module Droonga
           routes[route] ||= []
           routes[route] << subscriber.key.key
         end
+=begin
+# "group" version. This is slower than above...
+        route_records = subscribers.group("route",
+                                          :max_n_sub_records => subscribers.size)
+        route_records.each do |route_record|
+          route = route_record._key
+          routes[route] ||= []
+          route_record.sub_records.each do |subscriber|
+            routes[route] << subscriber.key.key
+          end
+        end
+=end
       end
       routes.each do |route, subscribers|
         yield(route, subscribers)
-------------- next part --------------
HTML����������������������������...
다운로드 



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