Is there any performance difference between the two following queries:
SELECT foo,bar FROM table WHERE id IN (1,2,3);
and
SELECT foo,bar FROM table WHERE id = 1 OR id = 2 OR id = 3;
I'm sure the difference in negligible in a small example like this, but what about when the number of valid IDs is much larger?