> Although, I will have variables in the user file
> for things like "show thread where user_location_id=city_id"

Do you mean that the controller action will need to retrieve database
information (ie posts, news articles, threads) based upon the current
user's details (ie location)?  This should be done with a single query
where possible (not endless if statements with slightly different
queries) - as it is easier to maintain.

I wouldn't worry about performance for select queries (even with
joins), you will be able to have several hundred per page request with
little performance hit (selects are very fast).  And you can always
look at caching if things do get slow.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to