I am new to golang and using encoding/csv ReadAll() lib to read all records of CSV file. e.g records := csv.NewReader(filename).ReadAll()
Just want to know are there any constraints that I should be aware of for e.g CSV file size etc.. How big CSV file can I read using ReadAll() without issues.
CodePudding user response:
- The only limitation here is originating from the hardware's RAM.
- In case you come across such a problem you may resolve this (depending on the case) with stream processing.
- On stream processing, you read one element at a time before proceeding to the next one.
- Here is an example from another thread.
