You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "jklaise (via GitHub)" <gi...@apache.org> on 2025/08/11 16:08:48 UTC
Re: [D] Superset pod crashes and high download latency with large Presto query results (>5M rows) — is streaming download supported? [superset]
GitHub user jklaise added a comment to the discussion: Superset pod crashes and high download latency with large Presto query results (>5M rows) — is streaming download supported?
I've done some digging and as far as I understand Superset currently does not support server-side streaming of results.
The endpoint `/api/v1/sqllab/export/{client_id}` downloads the CSV, but if you look in the [code](https://github.com/apache/superset/blob/732506b3fa974bd0524d6879cd241641f660a108/superset/commands/sql_lab/export.py#L94-L109), the results are loaded into memory and a pandas dataframe is created before creating the CSV.
I was hoping to use the `/api/v1/query/sqllab/results/` endpoint to stream the json result blob over REST and do CSV parsing client side, but this is a similar story as the result blob is fully loaded into memory on server side before being sent over, see [code](https://github.com/apache/superset/blob/732506b3fa974bd0524d6879cd241641f660a108/superset/commands/sql_lab/results.py#L106-L109).
GitHub link: https://github.com/apache/superset/discussions/33243#discussioncomment-14073481
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org