uploader.cache!
loads entire contents of file into memory
#2136
Milestone
uploader.cache!
loads entire contents of file into memory
#2136
I've been encountering this in production with 1-2 GB uploads and it's causing background processors to crash. :( (They
cache!
the file first from AWS in order to do local processing.)The load happens at this line:
I've been trying to look around and see if I can figure out how to fix it, but I've gotten a bit lost in the codebase and am not sure where this needs to be fixed.
Why does the whole file get read into the sanitized file? What's the purpose of the sanitized file here in the first place?
The text was updated successfully, but these errors were encountered: