Navigation Menu

Skip to content

Commit

Permalink
mrb: support estimating size for "reference_column == record_id"
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed May 7, 2015
1 parent c845d17 commit d835d45
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/mrb/scripts/expression_size_estimator.rb
Expand Up @@ -99,7 +99,12 @@ def estimate_regexp(data, index_column)

def estimate_equal(data, index_column)
lexicon = index_column.lexicon
term_id = lexicon[data.query]
query = data.query
if query.domain == lexicon.id
term_id = query.value
else
term_id = lexicon[query]
end
return 0 if term_id.nil?

index_column.estimate_size(:term_id => term_id)
Expand Down

0 comments on commit d835d45

Please sign in to comment.