I am wondering if there is any difference in regards to performance between the following
SELECT ... FROM ... WHERE someFIELD IN(1,2,3,4) SELECT ... FROM ..
I also did a test for future Googlers. Total count of returned results is 7264 out of 10000
SELECT * FROM item WHERE id = 1 OR id = 2 ... id = 10000
This query took 0.1239 seconds
0.1239
SELECT * FROM item WHERE id IN (1,2,3,...10000)
This query took 0.0433 seconds
0.0433
IN is 3 times faster than OR
IN
OR