> Do you know that for sure? If you lets say load the Users model in
> AppController, then it is more then likely that *all* of your other
> models are loaded b/c they are somehow associated with User.

In AppController I only turn on othAuth and afaik it doesn't load any
models if authorization is not required in a Controller.

Here's part of debug($this) run in my pages_controller :

[name] => Pages
    [helpers] => Array
        (
            [0] => Html
            [1] => Text
            [2] => Form
            [3] => OthAuth
            [4] => tqlTools
        )

    [uses] =>
    [components] => Array
        (
            [0] => othAuth
            [1] => Session
        )
.....
.....
[othAuth] => othAuthComponent Object
(
.......
[controller] => PagesController Object
 *RECURSION*
....
)


No model loaded, I only don't like this *RECURSION* .. in a controller
with like 6 models loaded there's a LOT of RECURSION.. do you have it
as well ?


> My suggestion is to not work / rely on benchmark solutions that just
> hammer at your server too much - its very complex to create a realistic
> scenario that way (i.e. 20 users holding down on your front page or some
> other action is very different from each of them doing different
> things). The best way to make your app faster should be to get some
> profiler going and see what functions / parts of your app take the
> longest to load and then optimize them.

Yeah, I'm taking a closer look on xdebug, I will post some results if
I manage to run it.


> From there I'd keep an eye
> closely on the server load during traffic peaks which you can use to
> generate yourself some statistics to estimate when your current horse
> power will not be enough anymore. Then it is time to cluster and scale
> your architecture.

So from some point there's a question where to put your resources :
trying to optimize the code or buying and adding hardware to cope with
a higher load.


> Anyway, I'm not an expert on the matter and you may
> be able diagnose things with your current benchmark setup as well -
> however I think its not the easiest path.
>
> Good luck and success with your app!

Thanks! We've got more then 5000 facebook users in a first week and
1000 daily active users (new facebook metric), up to 13000 pageviews/
day so it's coming along nicely :)

Best,
Andrzej


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