I have an SQL DB (Postgree) with ~ 2000000 records in a table. And I have a CSV file with ~ 500000 rows. I need to check all records in CSV and add them to DB if they were not present before . I should check them by name
field.
My question is what is the fastest way to do that?
Thanks