MySQL query taking lot of time in an AJAX request
The problem was in the connection string. I was using my domain name (example.com
) for connecting to the Database. So I changed it to my IP address and it resolved the problem.
Thanks everyone for your help.