Why CodeIgniter free_result dont work?
$query = $this->db->query("SELECT * FROM Website");
$websites = $query->result_array(); echo 'current mem website query:'; echo size_convert(memory_get_usage()) . " <br>"; $query->free_result(); echo size_convert(memory_get_usage()) . " <br>"; The memory did not change:( |
I think you might have to call
PHP Code:
Also, use [PHP][/PHP] tags around your code to make it more readable. |
Quote:
For example, in CodeIgniter 2.2.1, you may edit mysql_result.php (CodeIgniter-2.2.1/system/database/drivers/mysql/) to modify the free_result method as follows: Code:
function free_result() |
Welcome to LQ!
You have replied to a post that has been dead for five years, and to which the OP never returned. If you have a similar issue it is always best to start your own thread so that you can provide complete context, making the information concurrent and more useful to others, and avoiding confusion that often results from things that are similar but never really the same. Please review the Site FAQ for guidance in general forum usage. |
All times are GMT -5. The time now is 08:49 AM. |