就像问题
一样答案 0 :(得分:1)
是的,只需取消设置()结果对象即可。
然后,结果对象将调用mysql_free_result
()
<强> e.g。强>
// $result now holds a Datbase_Result object
$result = Database::instance()->query('SELECT * FROM table');
// To free the result, simply destroy the variable through means of unset()
unset($result);
// Result memory has now been freed