I am trying to find a way to effectively compare the contents of a CSV file with a MySQL database (more than 1 million rows for comparison), I did something similar before just putting all the rows in an array, but this will work for a small number of lines due to overload memory.
My question is, is there a recommended way to do this? Any libraries or something that could help?
I would state your answers.
source share