MySQL Forums
Forum List  »  General

Re: index usage dependent on in(group) content
Posted by: Rick James
Date: March 24, 2009 09:06PM

MySQL generally cannot use an index for the things in an OR. If, by turning it into a UNION, it can then use an index for that field, it is likely to run much faster.

Options: ReplyQuote


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


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.