new to CI, need advice on db connections |
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 |
Messages In This Thread |
new to CI, need advice on db connections - by m.ardito - 03-29-2016, 04:34 AM
RE: new to CI, need advice on db connections - by arma7x - 03-29-2016, 07:57 AM
RE: new to CI, need advice on db connections - by m.ardito - 03-29-2016, 08:51 AM
RE: new to CI, need advice on db connections - by dmyers - 03-30-2016, 10:19 AM
RE: new to CI, need advice on db connections - by m.ardito - 04-15-2016, 08:32 AM
|