Re: Can someone please explain why this occurs?!
HEy I just went thru this myself. The O'Reilly book on optimizing MySQL explains that prior to ver 5 the MySQL engine wasn't using indexes on the logical OR. You gotta switch to UNION until you upgrade to 5 (which also has real foreign keys, sub queries, triggers and a host of other cool features).
We swtiched to UNION even though the explain didn't seem like it ran faster. Then we put it in the code and it was BLAZING FASTER. My programmer is happy. I'm happy.
Subject
Written By
Posted
Re: Can someone please explain why this occurs?!
June 29, 2005 03:49PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.