Liquidweb hosts my site, they have a strict 30 second timeout policy if a signal isn't sent to the load balancer. My SQL query takes ~34 seconds to process when I directly access the DB.
My php looks like this:
echo " "; //To keep the site alive
$results = $this->db->query($sql); //Takes longer than 30 seconds
echo " "; //To keep the site alive.
Liquidweb cannot change the 30 second limit and the DB being queried is a membership database of tens of thousands of rows and will only get bigger.
Is there a way to have the page send a signal to the load balancer while the SQL query is running in the background?