MySQL Forums
Forum List  »  Optimizer & Parser

Re: Why does this query take 2 minutes?
Posted by: James Day
Date: February 03, 2005 08:43PM

The optimiser won't necessarily pick the best index but it'll usually make a fair try. Occasionally you're probably going to have to give it guidance with use index clauses. Keeping the total index count down and using the first part of composite indexes where practical reduces the chance of the wrong index choice, by limiting its options.

Options: ReplyQuote


Subject
Views
Written By
Posted
3418
February 02, 2005 10:39AM
2327
February 02, 2005 07:36PM
2049
February 03, 2005 07:21AM
2142
February 03, 2005 08:34PM
Re: Why does this query take 2 minutes?
2199
February 03, 2005 08:43PM


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.