Welcome Guest, Not a member yet? Register   Sign In
new to CI, need advice on db connections
#4

When you say "makes the server open a new connection" do you mean it doesn't close the old one and instead opens another and therefore your mysql server connection pool is maxed out? Since in PHP every page is a "new request" it starts from "nothing" and builds the page with every HTTP request. This "normally" closes everything down when complete. Of course there is always PHP Persistent Database Connections http://php.net/manual/en/features.persis...ctions.php which is a option of most PHP database drivers (specified by CodeIgniters pconnect database property) and that's another ball of wax.

As you can see there are many interpretation for "makes the server open a new connection" can you provide a little more clarity?

DMyers
Reply


Messages In This Thread
RE: new to CI, need advice on db connections - by dmyers - 03-30-2016, 10:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB