Hi, Here a quick 4-step primer to get better performance in cake 1. Specify var $recursive = 0; in your app/app_model.php This will cut off all automatic calls to hasMany& haBtm relationships by default. three-quarters of the time, I don't want those results - I simply need the belongsTo bindings. 2. Use the Containable behavior http://cakebaker.42dh.com/2008/05/18/new-core-behavior-containable/ With that you can easily set the models to pull, the level of recursion.. 3. Use Wincachegrind and Xdebug to test after. 4. Avoid using so many App::import('Model',$modelName) in your components where possible. Dr. Tarique Sani wrote: On Sat, Jun 7, 2008 at 5:36 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~--- |
- Update from 1.2 beta to rc leads to huge perfomance dr... Hermann Wacker
- Re: Update from 1.2 beta to rc leads to huge perf... bgmill
- Re: Update from 1.2 beta to rc leads to huge perf... Dr. Tarique Sani
- Re: Update from 1.2 beta to rc leads to huge ... [EMAIL PROTECTED]
- Re: Update from 1.2 beta to rc leads to h... Dr. Tarique Sani
- Re: Update from 1.2 beta to rc leads ... Femi Taiwo
- Re: Update from 1.2 beta to rc l... John David Anderson
- Re: Update from 1.2 beta to ... gbk *
- Re: Update from 1.2 beta... keymaster
- Re: Update from 1.2 beta... Hermann wacker
- Re: Update from 1.2 beta to rc leads to huge perf... NOSLOW