SQL Performance UNION vs OR
Either the article you read used a bad example, or you misinterpreted their point. select username from users where company = ‘bbc’ or company = ‘itv’; This is equivalent to: select username from users where company IN (‘bbc’, ‘itv’); MySQL can use an index on company for this query just fine. There’s no need to … Read more