On Mar 5, 9:02 pm, Javier <[email protected]> wrote:
> Thx for the answers, here are some points:
> 1. We do have index on my DB (from primary keys and foreign keys
> mainly), usually the DB access is really fast.
> 2. We aren't using the Containable behavior, but we make use of
> bindModel and unBindModel to limit the queries produced
> 3. I just updated to 1.2 final 8004 and gain a little speed (thx!)
> 4. To develop we use Firefox with some add-ons (firebug, developer
> toolbar, YSlow), and we test our application with a clean IE (we have
> even tested it on Chrome who has a really fast javascript engine), in
> all cases, the application has a very slow response time
> 5. Our css and js are both concatenated and obfuscated, so it
> shouldn't be an issue. I'll try to profile the application, but right
> now I can't install a profiler on our developer machine.
> 6. Our project has 68 models and 22 controllers, 2 plug-ins (with no
> models and a few controllers). We make use of Auth and RequestHandler
> components and HTML and Form helpers.
> Loading the initial page with debug=2 make a describe of all tables
> (our models have lots of relations).
> Right now the application performance's about 1 request per second on
> the initial page and the apache process use around 20MB of memory for
> each request. Other pages take up to 4 or 5 seconds to load.
>
> I'll try to get some profile info next time.
>
> Any other good practices or tips to further improve the performance??
When talking about performance, you are using debug = 0, right?
Your best course of action will always be to profile your app and
therefore *identify* what is slow rather than guess at the usual
suspects.
That said, if you have 68 models and they are all inter related (i.e.
you could if you want go from any model to any other model by
traversing associations) that means all 68 models will be loaded for
each page load. Using Persistent models, or modifying the way you're
using associations such that they aren't all inter-related would help
with that.
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---