Closing Connections - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Closing Connections (/showthread.php?tid=8840) |
Closing Connections - El Forum - 06-02-2008 [eluser]paynterc[/eluser] Does CI close connections automatically when queries are done? In my process list, I seem to have a lot of open (sleeping) connections for the same user and they're all for my CI application. Closing Connections - El Forum - 06-03-2008 [eluser]stuffradio[/eluser] Once the script is done executing the database connection is supposed to be closed automatically. So maybe you had put an infinite loop in or something? Closing Connections - El Forum - 06-03-2008 [eluser]Lone[/eluser] I think this is the issue you are talking about.. Stopping mysql too many connections errors Its to do with CI using persistant connections for mySQL by default. Closing Connections - El Forum - 03-13-2009 [eluser]majidmx[/eluser] has anyone used this and get a better result ? Please let me know, I switched the pconnect to off and I'm trying to see the results. Thanks, |