I just saw this in a script
mysql_free_result($rawdb);
I saw it on a script somewhere, it ran a mysql query and saved the results to an array, right after adding to the array, it ran that which I assume free's the memory used from the mysql query.
I am just asking to verify, is it a good idea to do this? I have a couple mysql queries which return a large result which is saved to an array, should I run that code after it?
Also in a performance conscious environment is it good practice to unset large sessions and variables when finished with them?