this is the same way i do it, although i never had the excellent idea
to set recursive to -1

My practice is:
1. while developing, just do a (not so) quick&dirty fetch with all
associated data and get your site to work
2. write contains everywhere to get optimised queries
3. check mysqls' slowquery log (or whatever your db gives you) on a
regular basis to find bad queries
4. check where caching makes sense on a regular basis


On 17 Jan., 21:45, "websta*" <[email protected]>
wrote:
> -          set recursive to -1 in your model: means you get no related data 
> and have to specify via containable or recursive params of your query what 
> your after, but you don’t get swamped with all the data all the time

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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