I have a task I have to do that involves checking almost 1 million values for matches in an MYSQL database. At the moment I just have a simple "in" statement with 50,000 values (this is the limit for the DB) at a time to check for matches but this is quite time-consuming. Any suggestions on how I could do this more efficiently?
Sample statement showing what I am doing:
SELECT column FROM table
WHERE column IN (value1, value2, value3,....) --All the way to value50000
I only have read access to the DB. I am unable to create temp tables.
Thanks in advance for any suggestions!