According to MySQL doc, I must use union and temporary tables.

It seems I have to do something along the line of this:

http://www.ricroberts.com/articles/2007/09/25/mysql-temporary-tables-and-rails

There are cases where I use OR queries quite often. I am talking about
queries like this "where column_1 = 123 OR column_2 = 123". It seems
MySQL indices cannot properly optimize this.

Are there plugins or snippets out there that automagically hide the
complexity of using temporary tables for such queries?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to