Posted by Chung Leong on 09/26/60 11:38
R. Rajesh Jeba Anbiah wrote:
>
> As many people have pointed out, *never* dump the table data into
> array. Fetch the record and immediately get that processed. If you have
> any *valid* reason, buffer the data into a very very small (known)
> sized array. If using MySQL, use the LIMIT if possible.
The reasoning being?
In my opinion conserving memory for the sake of conserving memory is
just silly. Hardware resources are there to be used. There's nothing
wrong with a script using a few megs of extra memory, as it'll release
them a short time later.
[Back to original message]
|