in reply to Comparing csv text file to mysql db in order to look for missing entries within the db.
Instead of extracting the data and comparing the results, I would load the data into a temporary database using mysqldump, then create a SQL to compare the results. I would think this would be faster.