MySQL Forums
Forum List  »  General

Re: index usage dependent on in(group) content
Posted by: Allan Kelly
Date: March 24, 2009 05:32PM

Many thanks Rick,

I have to say I'm glad I'm not the only one surprised by this behaviour!

I'll take your suggestions and report back.

Very interesting to hear that UNION trumps OR. I take it this is a general rule of thumb for MySQL - always prefer UNION to OR? In this case the categories will be distinct so UNION is correct.

Cheers, al.

Options: ReplyQuote


Subject
Written By
Posted
Re: index usage dependent on in(group) content
March 24, 2009 05:32PM


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.