[eluser]Doug Lerner[/eluser]
[quote author="Daniel Walton" date="1215784055"]It's pretty negligible. Saying that though, lets pretend that your homepage has come under some ddos type attack from a bot, is it considered negligible then? I would probably say no. What type of application are you building? how many unique views do you have, and what percentage are database driven? Another thing to consider is building/using other autoload libraries that may rely on, but not explicitly load, the database class.[/quote]
Good points. By the by, in some other code, I saw the database loaded as follows:
Code:
$CI =& get_instance();
if(empty($CI->db)) $CI->load->database();
Is that considered good practice? Does it save time? Or is CI clever enough not to "reload" the database by itself if it is already loaded?
doug