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

Support for streaming (memory-limited) CSV downloads #142

Open
mildbyte opened this issue Oct 7, 2022 · 0 comments
Open

Support for streaming (memory-limited) CSV downloads #142

mildbyte opened this issue Oct 7, 2022 · 0 comments

Comments

@mildbyte
Copy link
Contributor

mildbyte commented Oct 7, 2022

Currently we only support the JSON Lines output format and (IIRC) load the whole response into memory to serialize it before forwarding it to the client.

It would be nice to be able to:

  • return the response as CSV (e.g. selected with the Accept header, possibly using the GET API in order to cache the CSV file on the CDN)
    • probably setting the Content-Disposition header so that it's a standard download in the browser
  • support gzip compression?
  • stream the query result into the CSV writer instead of buffering it in memory
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

No branches or pull requests

1 participant