Hi,
I'm running:
"SELECT link FROM table1 WHERE link NOT IN (SELECT link FROM table2)"
This command is taking forever where table1 and table 2 are both large tables >100000 rows and where there are over 100,000 different links between them. If I do:
"SELECT link FROM table1 WHERE link NOT IN (SELECT link FROM table2) LIMIT 0,10"
The query works, but any larger selection takes a long time and crashes.
Is there a better way of running such a query? I have primary indexes for this field in both tables.