I have a SQL query that uses the values of an array in its WHERE clause:
$ids = array ( [0] => 1 [1] => 2 [2
The more values you put into IN, the slower it will run, obviously.
IN
"how many is too many" is a function of many factors. For example, your dataset size. Or how the rest of your query looks like.