Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using readall eats the memory #1

Open
mrsinham opened this issue Aug 24, 2017 · 0 comments
Open

Using readall eats the memory #1

mrsinham opened this issue Aug 24, 2017 · 0 comments

Comments

@mrsinham
Copy link

With saving csv on disk after downloading it, there is no need to read it entirely and store all in memory :

rs, err := csv.NewReader(d).ReadAll()

If the data are with 500k line, the ram is pressured. Consider using a csvreader on the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant