News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Matt Curry's Blog:
One More Tip For Speeding Up CakePHP Apps
April 16, 2009 @ 08:48:35

As a follow up to a previous list of eight things you can do to speed up your CakePHP applications, Matt Curry has added one more to the list today.

I somehow completely failed to mention the whole $uses/ClassRegistry/loadModel/chained models thing in my 8 Ways to Speed Up CakePHP Apps post.

He talks about chained models and the $uses array you can define in your controller to set them up. Once loaded, you can chain the objects for the models together and make compound requests. Of course, if you're looking for speed, you want to keep these down to a minimum:

Having one or two extra models in your controller's $uses probably isn't going to kill your app. I added one extra model to my test app and there was about a 4% increase in how long the page took. Then I added seven extra models and there was approximately a 40% increase. So roughly 4-6% for every additional model.
0 comments voice your opinion now!
tip cakephp speed performance chained model load


blog comments powered by Disqus

Similar Posts

Felix Geisendorfer's Blog: Validating the cleaned output of HtmlHelper::dateTimeOptionTag()

The Bakery: File Uploads, TuneShout.com, Zip Files and Uuid Behavior

Andre Liem's Blog: 5 tips and tools to optimize your php application - Part 1 simple

Felix Geisendorfer's Blog: Cake 1.2’s Set class eats nested arrays for breakfast!

Greg Beaver's Blog: phar gets a major speed boost with version 1.2.1


Community Events

Don't see your event here?
Let us know!


extension introduction framework conference podcast language unittest series release interview wordpress library middleware laravel5 laravel development voicesoftheelephpant opinion api community

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework