Re: [Templates] Performance on my new site is a drag

[prev] [thread] [next] [Date index for 2004/10/25]

From: Mark Mills
Subject: Re: [Templates] Performance on my new site is a drag
Date: 19:10 on 25 Oct 2004
Andy Lester wrote:

>We're doing this, and it's working marvelously.  Now, what else can I do
>to speed things up?  Heck, I'd settle for rudimentary profiling to see
>which of the templates is dragging our server down the most.
>
>We've left CACHE_SIZE at its default setting to let everything get
>cached.  There are only ~125 files on the entire site, including
>subcomponents, so I doubt the cache is getting bogged down?
>
>Our web server is pinned on all both CPUs, so anything we can do to
>reduce the load will be a help.  I'm not seeing anything in the Badger
>or the docs that is a help.
>
>Suggestions?  
>  
>
In my experience (admittedly warped experience) the number one culprit 
for heavy usage on a TT site is DB access. More than once I've seen 
people doing a heavyweight connect/login to their DB for every page or 
request, rather than holding a pool of open DB handles.

Number two has to be the bad habit of pulling in entire DBs and then 
filtering/joining the rows with perl or TT before display rather doing 
the heavy work in SQL. Hopefully you aren't doing that but I've seen it 
too many times to not ask about it. :-/

Profiling is an obvious next step. I'd do that next.

--mark



_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

(message missing)

Re: [Templates] Performance on my new site is a drag
merlyn (Randal L. Schwartz) 22:32 on 25 Oct 2004

Re: [Templates] Performance on my new site is a drag
Perrin Harkins 18:43 on 25 Oct 2004

Re: [Templates] Performance on my new site is a drag
Perrin Harkins 19:18 on 25 Oct 2004

Re: [Templates] Performance on my new site is a drag
Mark Mills 19:10 on 25 Oct 2004

Re: [Templates] Performance on my new site is a drag
Perrin Harkins 20:46 on 25 Oct 2004

Re: [Templates] Performance on my new site is a drag
Geoffrey Young 02:18 on 26 Oct 2004

Re: [Templates] Performance on my new site is a drag
Perrin Harkins 14:40 on 29 Oct 2004

Re: [Templates] Performance on my new site is a drag
Perrin Harkins 15:07 on 29 Oct 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52