Ability to stream json data directly to another stream #585
Comments
Think this is going to have to be in 2.0 |
Cool idea. It would be nice to do it for milestone 4.0 imho. |
Curious if GraphQL is still in the works as mentioned here: https://jeremydmiller.com/2018/06/07/planning-the-next-couple-marten-releases/ Note that this blog post references #585 |
Has there been any thought on the API to get the streaming option? Like There would still be a need to convert stream to UTF8 since |
@Miggleness The serializer shouldn't have to get involved at all. It should be Npgsql's streaming support effectively pushing bytes directly to the HttpResponse.Body. There's gonna be some hiccups maybe if we need to strip out some serializer specific noise, but we'll have to cross that bridge when we get to it |
I'll find time to play around with it |
For the case where all you want to do is get some results from the server as JSON and send it down to an HTTP response. Skip the JSON string altogether and just copy bytes from one stream to another.
The text was updated successfully, but these errors were encountered: