Basically, if I have a table with composite indices (colA, colB, colC) and (colB, colD, colE), is MySQL able to take advantage of their overlap on colB to combine them and speed up a query involving colA, colB and colD, even if there is no single index covering these three particular columns?
I tried using EXPLAIN on a test case like this, but even though it recognized both indices as possible keys, it only used the first one. However, I do not know if this was because it is unable to make the combination or because the optimizer didn't think it was worth it given the number of rows.
I would expect it should be able to, but couldn't find any straight confirmation around. Thanks for your input.