I'm using Node.js, and I have to update a .csv with the data of another .csv which I'll have access later. For example, if I have these two rows in the .csv:
18/10/2019,19/10/2019 (Key) ,135.45 --> First .csv
18/10/2019,19/10/2019 (Key) ,150 ---> Second .csv
I want the updated row to be:
18/10/2019,19/10/2019 (Matched key) ,150
So, I'm searching for a npm package or another tool which allow me to define the key I'm searching in the first .csv and update it with the values I have in the second.
The problem is, I can't really save the first .csv in JSON format, for example, because the amount of data is so big that the process of saving the data and parsing it afterwards would probably cause me huge memory issues (I'm talking about 14GB csvs more or less).
So... Should I use a database? Any other ideas?
First post in here, I hope I was clear about what I was asking, and sorry for some grammar issues, English is not my native language...
Thanks in advance!