![]() |
$DB_site->free_result($something) question
I am working on a vb hack and would like to know WHY and WHEN i am supposed to be using 'free_results()' ? Thanks for the help. :)
|
When you query the db the result is saved inside an resource (think it as a structure similiar to an array) so takes space in memory. After you processed the result within your "while fetch array" loop, you assign its values to a "real" array and at this point you are finished with your resource. So to save some memory space its suggested to delete it from memory as you dont need it anymore and free_result object does exactly this..
|
Ah i see thanks for the info. ;)
|
It is recommended to use it after every fetch_array we perform? Or just when we see the need to free some space in memory.
|
Quote:
|
OK thanks for the tip! :)
|
All times are GMT. The time now is 08:42 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|