I need help in updating a huge csv file with 3.5 Million records. I need to update 3rd column with the mapping value from another file.
I tried reading the file and updating the 3rd column by searching the pattern in mapping file but since the actual file is having 3.5 million and mapping file is having ~1 million records, it seems to be running forever.
E.g.
Actual file:
123,123abc,456_def,456_def_ble,adsf,adsafdsa,123234,45645,435,12,42,afda,3435,wfg,34,345,sergf,5t4 234,234abc,5435_defg,345_def_ble,3adsaff,asdfgdsa,165434,456,435,12,42,afda,3435,wfg,34,345,sergf,5t4
Mapping File:
456_def,24_def 5435_defg,48_defg
Output expected:
123,123abc,24_def,456_def_ble,adsf,adsafdsa,123234,45645,435,12,42,afda,3435,wfg,34,345,sergf,5t4 234,234abc,48_defg,345_def_ble,3adsaff,asdfgdsa,165434,456,435,12,42,afda,3435,wfg,34,345,sergf,5t4