I'm just wondering if the number of identifiers in the list will affect query performance.
request example:
SELECT * FROM foos WHERE foos.ID NOT IN (2, 4, 5, 6, 7)
Where (2, 4, 5, 6, 7)is an infinitely long list.
And how much is too much (in the context of order)?
UPDATE: The reason why I ask this is because I have two dB. One of them (read-only) is the source of the elements, and the other contains elements that are processed by the operator. Every time an operator requests a new item from a read-only database, I want to exclude an item that has already been processed.
source
share