Or, you could use the now built-in (1.2) Containable behaviour. I used to use a lot of unbindModel calls, but on a recent project started using Containable and it's much cleaner and easier.
On Jun 11, 7:09 pm, RichardAtHome <[EMAIL PROTECTED]> wrote: > The biggest performance improvement I've found so far is: > > Unbind unused models! Simple, but very effective. > > For example, a few pages in a project I'm working on needed deep > recursion (recursive = 3), which resulted in 4000+ queries O.o > > The pages were timing out. > > A few unbinds later and its down to 40+ queries. > > Unbinding also has the added benefit of using less memory per request > too meaning your apps are the little bit more scalable. > > On Jun 11, 9:56 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > > > On Wed, Jun 11, 2008 at 1:54 PM, Marcin Domanski <[EMAIL PROTECTED]> wrote: > > > From my benchamrks it's not really worth caching the results but > > > cookbook doesn't have such a big dataset... so im not yet sure if i'll > > > add caching. > > > Caching in most cases will not be needed... Lucene was meant to be very fast > > > > Tarigue did you use Lucene as a crawler or as db search ? > > > crawler > > > Tarique > > > -- > > ============================================================= > > Cheesecake-Photoblog:http://cheesecake-photoblog.org > > PHP for E-Biz:http://sanisoft.com > > ============================================================= > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
