[Groonga-commit] groonga/groonga at a071b5c [master] logical_select: reduce needless expression creation

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Apr 10 16:17:03 JST 2017


Kouhei Sutou	2017-04-10 16:17:03 +0900 (Mon, 10 Apr 2017)

  New Revision: a071b5cc6a16855a266a92df567898affdd48681
  https://github.com/groonga/groonga/commit/a071b5cc6a16855a266a92df567898affdd48681

  Message:
    logical_select: reduce needless expression creation

  Modified files:
    plugins/sharding/logical_select.rb

  Modified: plugins/sharding/logical_select.rb (+2 -0)
===================================================================
--- plugins/sharding/logical_select.rb    2017-04-10 16:15:51 +0900 (dbe4144)
+++ plugins/sharding/logical_select.rb    2017-04-10 16:17:03 +0900 (2dfb1b0)
@@ -440,6 +440,8 @@ module Groonga
 
         def apply(table, condition=nil)
           column = table.create_column(@label, @flags, @type)
+          return if table.empty?
+
           expression = Expression.create(table)
           begin
             expression.parse(@value)
-------------- next part --------------
HTML����������������������������...
Download 



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