MySQL Forums
Forum List  »  Performance

No keys used tho fields have keys: why?
Posted by: Margaret MacDonald
Date: March 05, 2005 12:28PM

I have a LEFT JOIN query that consistently takes on the order of a second to execute on my dev machine regardless of how many records (in the range 3-200 from a table of 175K records) are returned.

EXPLAIN tells me that no keys are being used for the main branch of the join, even though indexes are defined on the columns being returned. A key (PRIMARY) is being used on the minor branch.

What would cause the engine not to use keys that are defined for use?

Options: ReplyQuote


Subject
Views
Written By
Posted
No keys used tho fields have keys: why?
2666
March 05, 2005 12:28PM


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.