[Zope] Optimisation fun and games

Anthony Baxter Anthony Baxter <anthony@interlink.com.au>
Mon, 20 May 2002 13:06:45 +1000


>>> Bakhtiar A Hamid wrote
> 5 - squid.  throw in squid and stuff will be served much much faster. off 
> course, the pages need to be cacheable i.e with at least Expires field, or 
> better yet put out the necessary cache headers.

This only helps if your pages are mostly static, or mostly the same for
each user. Many/most of our pages are highly dynamic, this makes a front
end cache a bit exciting. For RAM caching, we use a whole pile of different
values as keys - languages, partner, that sort of thing. The sidebar on
www.ekit.com is ram cached - right now, the ram cache has 320 different
sidebar entries.

Other things I found that helped (digging into the memory here):
  avoid dtml-tree. It _seems_ neat, but it's a total time sink.
  work out which SQL methods are getting hit, and when, and cache
    them.

Anthony
-- 
Anthony Baxter     <anthony@interlink.com.au>   
It's never too late to have a happy childhood.