Maximum execution time of 60 seconds exceeded for simple query
Hi
I have written a simple query for checking email id already exist or not. In local it is working fine. when I uploaded in plesk server I am getting this error . Is anything wrong in my code?
@jlrdw in this server I am unable to find where I can change settings. My question is for small query Y its taking that much time. Anything wrong in my code?
the system is just telling what was happening... the issue can be many, such as number of records in the table, the indexing, the resources of the server allocated, network connection performance... until you able to find out which part that causing long time execution, modify the php.ini is the quick fix but not for long term...
try enable the debugbar, telescope or Clockwork extension or any debug tool to check the total time it take, it seem you are making multiple query...
check the log and you need debug tool to trace the issue...
simplify the query first and add complexity bit by bit to find out which part of query that cause time out...
if even a simple select query can cause timeout, most likely something wrong with your resources or environment setup, such as connection to the DB server may already an issue....