MySQL Forums
Forum List  »  Optimizer & Parser

Re: How to optimize this query?
Posted by: Yogesh Salvi
Date: August 13, 2007 05:43AM

Hello,

I think you should try following options:-

1. remove that 'UCASE' function from where clause, since mysql does match case insensetive.
2. try to avoid use of LIKE '%someword%'....means avoid use of %..% since such query require mysql to scan each row.
3. Try to use fulltext search instead of LIKE.


I think this should work for you.

Regards,
Yogesh Salvi

Options: ReplyQuote


Subject
Views
Written By
Posted
4374
June 20, 2007 07:38AM
Re: How to optimize this query?
2277
August 13, 2007 05:43AM


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.