Which query would run faster?
SELECT * FROM topic_info
LEFT JOIN topic_data ON topic_info.id = topic_data.id
WHERE id = ?
or
SELECT * FROM topic_info
LEFT JOIN topic_data ON topic_data.id = topic_info.id
WHERE id = ?
The difference is the order of expressions on the "ON" clause: the first query is checking topic_info.id against topic_data.id, the second topic_data.id against topic_info. Which query would generally run faster?
(I know either query won't parse because of the ambiguous "id" column, but let's ignore that)