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

Changes download to not write file before sending response #474

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ronualdo
Copy link

I have a few cases where the download action is triggering server timeouts because it seems that Blazer is writing the whole CSV to the disk before sending the response. I was wondering if we could use response.stream instead to avoid this type of scenario.

I've opened this PR with an initial implementation. Would love to hear any thoughts on this.

Changes action to avoid writing the whole file
to the disk before sending the response and
potentially triggering response timeouts.
@ankane
Copy link
Owner

ankane commented Jun 16, 2024

Hi @ronualdo, thanks for the suggestion and PR! I think we can switch to send_stream once Rails 6.1 is no longer supported (branch).

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

Successfully merging this pull request may close these issues.

2 participants