I have problem with a sleeping queries. Some tasks in my WEB tooks longer than 1min so mysql queries gets status "sleeping" until proccess will be closed. I want to close proccess just after grabbing details.
$delay = $this->db->select('*');
$delay = $this->db->get('system_status');
if($delay->num_rows() != 0) $delay = $delay->result_array();
and after this code should be some clear or something to delete inserted row to process list until it will be declared as "sleeping". Any ideas?