I have two text files containing strings on each line. I compare these text files to find which strings have been added and which have been deleted.
Each day roughly 100,000 strings are added and 100,000 strings are deleted.
I currently use System.Data.SqlClient.SqlBulkCopy to add new rows. This adds the 100,000 new rows in roughly 1 second.
However, I cannot see a similar way to delete rows. I have 100,000 strings to remove from a table of 14 million rows. Even attempting to remove 5000 in one go using IN (x,x,x,x) results in a timeout after a minute.
Is there an efficient method in c# to remove these strings?