csv-to-sql-insert
csv-to-sql-insert copied to clipboard
Stream CSV file reading & SQL file writing
The CSV file can get very huge. So, depending on the size of your CSV file, we might want to consider streaming the file instead of reading the entire content into memory.
This is a good idea!! 💯
Processing them sequentially might lead to performance bottlenecks. Parallelizing the processing of multiple rows simultaneously can significantly improve overall performance. I once came across promise.all() for a project doing parallel reading. we can add that.