Then you are going to have to develop some kind of algorithm. Perhaps you could stuff those "couple thousand values" into a temporary table and then execute an INNER JOIN against it. Like it or not, you are forced to construct a different approach to your problem.
in reply to Re^2: SQLite and large number of parameters
in thread SQLite and large number of parameters