So let's say I have a table with two indexes - one on column a and one on columns a, b and c.
I've noticed that, depending on the order of the columns in the index definition that MySQL might wind up using the single column index instead of the multi column index, even if all three columns in the multi column index are being referenced in the ON part of the JOIN.
This kinda begs the question... how does one figure out the ideal ordering of the columns? Do you just have to brute force it?