rahulpareekyx
rahulpareekyx

Reputation: 71

Are there any limits to golang csv readAll() function

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.

Upvotes: 0

Views: 1769

Answers (1)

Laz ros
Laz ros

Reputation: 36

  • 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.

Upvotes: 2

Related Questions