res.send() too slow when returning large JSON object

759 Views Asked by At

I am building an Express GET route that responds with a large JSON object.

Res.send(myobject) or res.json(myobject) works fine but is too slow.

Is there an alternative method that i can use? I took a look at streaming but seemed to be file oriented.

Thanks for the help in advance

0

There are 0 best solutions below