CodeIgniter Forums
CodeIgniter Multiple Databases Persistent Connection? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: CodeIgniter Multiple Databases Persistent Connection? (/thread-40834.html)



CodeIgniter Multiple Databases Persistent Connection? - El Forum - 04-20-2011

[eluser]Unknown[/eluser]
I'm using multiple database in my CodeIgniter application and have been reading a lot that persistent connections should be turned off.

Why is this measure recommended and is this still necessary in CodeIgniter 2.0.1?

I'm doing things like

$db2 = $this->load->database("dbname", TRUE);