jquery $.ajax function call is slow first time -


I have $$ to update some values ​​in the database When the page calls for the first time ajax, then it is slow, it is taking 5 or 6 seconds to return the result after the first request, it is fast. I'm not sure there is no way to make the first call faster. If you have any ideas, please let me know.

Thank you, Sridhar

I would doubt that the database is doing some caching and Later requests are filled with cache. If this is happening only on the first request of data, regardless of the data contained in it, I suspect that the web service you are connecting must be loaded in memory on the first operation.


Comments