Colin Law wrote in post #1155319:
> On 16 August 2014 11:03, Ronald Fischer <li...@ruby-forum.com> wrote:
> Would it be possible to combine the two queries into one - Dict.where(
> ...  or ... )?  Then you would not need to concatenate them.

Technically, yes, and it likely would be a performance improvement too. 
>From a designer's viewpoint, I don't like this solution so much, because 
the individual parts are used in different contexts too, and it means I 
would have code duplication here, but maybe I will give it a try.

Ronald

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/f36a8039a96f3275ff1926a9fee19a63%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to