cpp rest sdk response time is too slow with large? dataset.
Hello, 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.
@JGTed, I think your best bet is to take a look at wireshark. You need to establish what is happening on the wire. It could be a slow DB read on the server, network or DNS issues etc...
It might also be useful to check your server logs to see what the request -> response timing is from its point of view.