Re: [SMARTY-DEV] feature request

From: Date: Mon, 05 Jan 2004 18:43:18 +0000
Subject: Re: [SMARTY-DEV] feature request
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2032@lists.php.net to get a copy of this message
> - Do you also query the author? > - Do you also query the comments of the news item? > - Do you ... > > If you answer yes on one of those questions, and it turns out the template > doesn't need it after all: overhead, you queried too much (and a join is > very expensive) Depends how you look at it. Is it better to query all required data for news (including any joins) when only part of it is needed, or to query it even when none of it is needed? This, to me, is clear cut! Particularly when you look at the PostNuke/PHP-Nuke types of site, where there is the potential for all sorts of information to be shown on any page but the likelihood that only parts of it will be. I'd settle for pulling out all the news but none of the surveys, calendars, "who's online", etc etc... Similarly shopping sites and news sites and numerous other examples. -- Mark Rogers, More Solutions Ltd :: Tel: 0845 45 89 555

« previous php.smarty.dev (#2032) next »