That makes more sense, but is there any reason you'd need to be recreating
all this on every request? For example, it looks like things like top sold,
top rated, featured, and all of the search information could easily be
cached instead of rebuilt on every request? In fact, the content itself
could be cached since things like the display of the search box or the
display of the featured news, tips, links, and all the rest could be created
one time and displayed from the cache.

Basically, I'm not sure you actually need to be redoing all of this work on
every request. It looks like some kind of caching might help you a lot, but
without more information it is hard to tell.

Also, are the LinkGateway, NewsGateway, etc. all returning queries? Or
arrays of Value Objects? Because while some cases (such as what Peter
outlined) require actually getting back collections of objects, it doesn't
seem like links or tips or news would fall into that category. Couldn't
these all just return queries?


On Mon, Mar 31, 2008 at 12:54 PM, Ronan Lucio <[EMAIL PROTECTED]> wrote:

>
> Brian,
>
> Brian Kotek escreveu:
> > First, from your message I'm guessing that English is not your first
> > language
>
> You're right. My first language is Portuguese.
>
> > What, exactly, are you "getting" 50 times for the header, body and
> footer?
>
>  From header:
> - string objCompany.getName();
> - numeric objCompany.getID(); (To show the image related) in the header.
>
>  From body:
> - query objProductGateway.listTopSold();
> - query objProductGateway.listTopRated();
> - query objProductGateway.listFeaturedByCategory( category: 1 );
> - query objProductGateway.listFeaturedByCategory( category: 2 );
> - query objNewsGateway.listFeatured();
> - query objTipGateway.listFeatured();
> - query objLinkGateway.listFeatured();
>
>  From search include (Every page has a search area):
> - query objState.list() [to fill dropdown]
> - query objCity.list( state ) [to fill dropdown]
> - query objPrice.listRanges() [to fill dropdown]
> - query objCategory1.list() [to fill dropdown]
> - query objCategory2.list() [to fill dropdown]
>
>  From footer:
> - string objCompany.getFone();
> - string objCompany.getAddress();
> - string objCompany.getCity().getName();
> - string objCompany.getCity().getState();
> - array objCompany.getContacts();
>
> It's just an example.
> Ronan
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to