I have a scenario where the client has daily updates / inserts from a CSV file which is generally around 30,000 to 50,000 rows. This CSV will contain both new imports as well as need the ability to update existing rows.
I am using PHP / MySQL.
Currently I am having to check each row of the CSV and compare with what is in the database.
This is obviously taking a really long time.
If there is nothing in the database it does a straight import which is fast in itself.
I have thought about the temp table and join, but did not know how that would work with the new rows compared to the update.