Is the RS stored as a variable, like an array, or are RS's stored at the database? It seems to be stored somewhere else, which means a connection to get it is required.
I ask because, if the RS is stored at the database, and the information is just brought to the page when it is needed, it may make more sense to put the whole RS in an array imediately, and than close the connection with the RS.
Freeing the connection would sacrifice some memory, but would save on connections, and it seems like connections are more important than memory.
We seem to be getting into areas of PHP's design as opposed to coding. Is there a more appropriate place for me to have this discussion?
paul13
vincent wrote:
There is no difference. PHP also has functions to cleanup resultset memory.
But most of the programmers here are too 'lazy' to do it 🙂