Streaming large data sets back to a client #3353
Unanswered
simonjcarr
asked this question in
Help
Replies: 1 comment 4 replies
-
I am not aware of trino and its API. If they return back a ReadableStream, then you can simply pipe to the response. trinostream.pipe(response.response) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am reading data from a trino API. I don't know how big the data set is until trino has finished sending the data.
I would like to return a stream to the client and then write data to the stream as Adonis receives it from trino. We are using Adonis 4 on this project, not sure if that will make a difference.
Can anyone provide an example of how I should approach this? My experience with streams in general is limited.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions