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

How to read big csv file using your library? #121

Closed
D1maD1m0nd opened this issue Apr 25, 2023 · 0 comments
Closed

How to read big csv file using your library? #121

D1maD1m0nd opened this issue Apr 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@D1maD1m0nd
Copy link

i have a 5gb file when i start to read the file using CsvReader
Program crashes with out of memory error
What are the solutions to this problem?
my code:

val container = mutableListOf<List<String>>()
csvReader().openAsync("$fileName.csv") {
    readAllAsSequence().asFlow().collect { row ->
        container.add(row)
    }
}
@D1maD1m0nd D1maD1m0nd added the bug Something isn't working label Apr 25, 2023
@D1maD1m0nd D1maD1m0nd closed this as not planned Won't fix, can't repro, duplicate, stale Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant