Skip to content

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