> I was able to test more than 8000 ORs without any problem.
This is a ridiculously large and unreasonable number of conditions. It will
probably take half an hour just to parse the statement, never mind execute
it. I suggest stuffing your values in a table and joining (for AND) or
using EXISTS (for OR).
For some information on how to stuff the values in a table, see
(which also has links to other articles along