Re: [SMARTY] direct way to handle mysql result sets (via resource id) with smarty

From: Date: Mon, 02 May 2005 17:25:33 +0000
Subject: Re: [SMARTY] direct way to handle mysql result sets (via resource id) with smarty
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12572@lists.php.net to get a copy of this message
Jörg Hermsdorf wrote:
Well, I'm not only looking for a simpler syntax. Think of an result set with 15 columns and 2000 rows. Considering memory and performance, I'm not sure if it is a good idea to create such an large array (15x2000 fields) just to be able to display the result set using smarty... I'd prefer a solution without creating an array at all...
If you are dealing with a large array of that size, you are also going to run into slowness when it comes time to render the data. This might be better done as paged data, which will limit the size of your result set and eliminate your memory concerns.

« previous php.smarty.general (#12572) next »