housebolt, how slow is $uses?

i should treat 'loadModel()' with the same care ['stay away as much as
you can']?
how slow does it make the production software?

On Jul 29, 8:45 am, housebolt <[EMAIL PROTECTED]> wrote:
> It probably is your server. I ran a couple of apps on a godaddy shared
> server (with CGI) and the load on the server was already so high that
> adding a large app load on top of all of it made the thing slow, but
> not nearly as slow as what you've got going. I used to have an app
> with about 30 tables running clean and smooth on a shared server, it's
> just a matter of how efficient your code is and how fast your mysql
> server is responding to requests.
>
> Also, you'll want to check that you're not using var $uses heavily in
> your controllers. For example you'll want to use 
> $this->Users->Profile->read() instead of using var $uses = array('Users', 
> 'Profile'); (and
>
> $this->Profile->read()). $uses is evil and should be sparsely used.
>
> Last but not least, try setting debug to '0' in /app/config/core.php.
> Cake will do some automagical caching to speed things up a bit.
>
> But all in all, I'd recommend getting a new server. I run pretty much
> everything these days on mediatemple (mediatemple.com). Check them
> out, they've got a great setup.
>
> On Jul 28, 7:47 pm, "AzGhanv/." <[EMAIL PROTECTED]> wrote:
>
> > Just need to confirm... is there some known issue of cake with
> > Apache1.3/CGI .....
> > i have also asked server hosting company to check load.
> > sometimes it takes 2-3s and sometimes 20-60s for php exec.
>
> > plz reply if someone have any idea ...
>
> > On Jul 28, 11:44 pm, "AzGhanv/." <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > Cake PHP is running dead slow on production server, plz check it
> > > yourself ...http://www.voiceofkhanqah.com, On load, at bottom of page it 
> > > shows ...
> > > <!-- 60.6669s -->
>
> > > For phpinfo() ...http://www.voiceofkhanqah.com/afnan.php
>
> > > For debug level 3 logs of main page ...
> > > ---------------------
> > > 3 queries took 57 ms
> > > Nr Query Error Affected Num. rows Took (ms)
> > > 1 DESCRIBE `majalis`  6 6 18
> > > 2 DESCRIBE `users`  5 5 29
> > > 3 SELECT `Majlis`.`id`, `Majlis`.`title`, `Majlis`.`start_time`,
> > > `Majlis`.`end_time`, `Majlis`.`status`, `Majlis`.`weekdays` FROM
> > > `majalis` AS `Majlis` WHERE status=1   5 5 10
>
> > > other static content (htm) on same server runs comparatively faster 
> > > ..http://www.voiceofkhanqah.com/old/
>
> > > please reply what i m missing, thanks in advance.
>
> > > Afnan.


--~--~---------~--~----~------------~-------~--~----~
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