I'm gonna need to match several ID's that aren't on my DB with ID values that are in my DB, something like:
SELECT ... WHERE idfield IN (123454, 12312312, 1223123, 12313123 ...., 99923412)
Can WHERE IN hold this many strings for matching? Sometimes I'm gonna match something like 200 IDs, other times, 600, as max as 2000 IDs.
Is there a better way to do it? Im really worried about memory and speed.
EDIT: Ok, one of my questions was answered, there are no limits to the WHERE IN and the query will be faster if the field I'm matching with is indexed. (MySQL IN condition limit)
But, I'm also looking for alternatives here, so if anyone have another technique on this match function, that would be great.