Say I have a query like the following:
SELECT * FROM users WHERE username = 'test' AND somethingelse = 'test'
I'm wondering if it's necessary to index both columns for optimization. Does MySQL first find all username columns with the value 'test', and then search those results for somethingelse columns with 'test'? Or does it happen simultaneously?