cpprest sdk response is slow when using with big? dataset

May 13, 2016 at 10:21 AM
Edited May 13, 2016 at 10:21 AM
I'm trying to fetch data from DB throu HTTP using cpp rest SDK.

My client program basically calls url that mapped into ther service and the service is fetching the data from the database I set.

After I fetch data from the DB, I wrap the data as json and send it to the client thru http, but it takes 4-5 sec to get the resonse from the time the response is sent.

I'm only sending 1000data set, each set has 10 member variables. So.. why would this take so long? Is this normal? and if there's a way to improve the response time, can someone please tell me!!

Thanks in advance.