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

csv upload fails with 117k respondents #2268

Open
manumoreira opened this issue May 10, 2023 — with Manas.Tech Commit · 2 comments
Open

csv upload fails with 117k respondents #2268

manumoreira opened this issue May 10, 2023 — with Manas.Tech Commit · 2 comments
Labels
Milestone

Comments

Copy link
Contributor

manumoreira commented May 10, 2023

CDC tested the CSV upload with a real sample file of 117k and even if the file was finally uploaded there were some issues:
In some cases, this error shows-up
Screenshot 2023-05-10 at 10 22 36
In some others, the uploading process last forever in the respondents list drag and drop box
image
Here's an example
117k.csv

@ysbaddaden ysbaddaden added the bug label May 12, 2023
@ysbaddaden
Copy link
Contributor

Some context from @matiasgarciaisaia: the production server only allocated 512MB of memory to Surveda, which crashed while importing the CSV (out-of-memory). Allowing Surveda to use 1GB of memory avoids the problem.

As suggested before, we shall be able to reduce the memory usage by streaming the respondents in batches from the controller to the actual function, allowing to work with batches of 1000 respondents at once instead of all respondents. It would still take time to process all the respondents, but memory usage would stay low, and would likely help to only have to deal with 1000 respondents at most.

@manumoreira
Copy link
Contributor Author

Adding a reference to the latest tests on this https://manas.slack.com/archives/C1L7CJMNU/p1683736128357109

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

No branches or pull requests

2 participants