Welcome Guest, Not a member yet? Register   Sign In
please advice me about how to stop multiple db connection
#1

[eluser]basementDUDE[/eluser]
I was told that my application use too many db connection by our hosting company.
My problem is I NEVER create a single db connection manually, its all managed by CI.How did it happen??

Any way I trouble shoot this problem?

Maybe set pconnect to false(Whether to use a persistent connection) in the db config file?

maybe I shoud put
Code:
$this->db->close();
in every single model method!??

thanks




Theme © iAndrew 2016 - Forum software by © MyBB