Re: Re[2]: displaying data from database
| From: | LIMBOURG Arnaud | Date: | Thu, 15 Nov 2001 15:42:01 +0000 |
| Subject: | Re: Re[2]: displaying data from database | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-1916@lists.php.net to get a copy of this message | ||
> Well, now I see that I have no alternatives to retrieving
> entire data which I need to be
> displayed to an array of hash arrays.
>
> I was just thinking if there is another way, like I did in
> FastTemplate - fetching data
> row by row and adding rows to output. Somewhy I don't like
> fetching all data to memory at
> once, I will perform some research of how can it reflect on
> performance.
>
> Thanks,
> Alex.
The pager class does this but it adds a bit of overhead though i guess it is
faster than loading everything in memory, never tested though.