What would be the best way to go in order to parse a 100 million record table, record by record, an update certain fields on some of those records ?
Basically I have a table of 100 mil records and a text file of 100 mil lines.
Both are sorted by product_id code.
All I need to do is to parse the table and look for the equivalent field in the text file. If the 'price' column is different , then I have to update the database table.
The problem is that it takes forever if I use 'update table set prrice=xxx where product_id=yyy' for each of the 100 million lines in the text file.
It takes about 2.5 days because the program processes about 500 lines per second. I need to get it 10-20 times faster than that.
Any suggestion is appreciated, thank you,
thor