Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter Used MEMORY by profiler
#3

[eluser]Narf[/eluser]
PHP itself takes a half of that. When the PHP binary is executed, by default all of its compiled modules will be loaded as well. The more extras you have - the more memory they will eat.

Also, exactly for the purposes of profiling, in order to be able to display database queries, CodeIgniter will store them all in a property. Again, this is by default and you can turn it off:

Code:
$this->db->save_queries = FALSE;

... or in your config/database.php:

Code:
$config['default']['save_queries'] = FALSE;

Additionally, in order to prevent repeating calls to a database - results from them are cached in the DB_result objects as well. So unless you unset those and if you're dealing with large chunks of data - it is normal that it takes up some memory.


Messages In This Thread
CodeIgniter Used MEMORY by profiler - by El Forum - 11-10-2012, 10:28 AM
CodeIgniter Used MEMORY by profiler - by El Forum - 11-14-2012, 01:24 AM
CodeIgniter Used MEMORY by profiler - by El Forum - 11-14-2012, 02:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB