Community

Why won’t MySQL use the best index in a join?

(Baron Schwartz) Someone recently asked me why the wrong index was being used for a JOIN, making the query run very slowly. We ran EXPLAIN and saw this abridged output:

Read More - Register for Free Membership