X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EE5B13A48F4 for ; Thu, 4 Nov 2004 17:59:29 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 59335-08 for ; Thu, 4 Nov 2004 17:59:27 +0000 (GMT) Received: from fep3.cogeco.net (smtp.cogeco.net [216.221.81.25]) by svr1.postgresql.org (Postfix) with ESMTP id DAC7C3A48F0 for ; Thu, 4 Nov 2004 17:59:26 +0000 (GMT) Received: from [127.0.0.1] (d226-34-9.home.cgocable.net [24.226.34.9]) by fep3.cogeco.net (Postfix) with ESMTP id 73C9433ED; Thu, 4 Nov 2004 12:59:25 -0500 (EST) Message-ID: <418A6DFD.8010803@ethereal-realms.org> Date: Thu, 04 Nov 2004 12:59:25 -0500 From: Martin Foster Organization: Ethereal Realms User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Matt Clark Cc: Matthew Nuzum , PostgreSQL Performance Subject: Re: Restricting Postgres References: <003001c4c28d$d2f16830$8300a8c0@solent> In-Reply-To: <003001c4c28d$d2f16830$8300a8c0@solent> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/50 X-Sequence-Number: 9004 Matt Clark wrote: >>Case in point: A first time visitor hits your home page. A >>dynamic page is generated (in about 1 second) and served >>(taking 2 more seconds) which contains links to 20 additional > > > The gain from an accelerator is actually even more that that, as it takes > essentially zero seconds for Apache to return the generated content (which > in the case of a message board could be quite large) to Squid, which can > then feed it slowly to the user, leaving Apache free again to generate > another page. When serving dialup users large dynamic pages this can be a > _huge_ gain. > > I think Martin's pages (dimly recalling another thread) take a pretty long > time to generate though, so he may not see quite such a significant gain. > > Correct the 75% of all hits are on a script that can take anywhere from a few seconds to a half an hour to complete. The script essentially auto-flushes to the browser so they get new information as it arrives creating the illusion of on demand generation. A squid proxy would probably cause severe problems when dealing with a script that does not complete output for a variable rate of time. As for images, CSS, javascript and such the site makes use of it, but in the grand scheme of things the amount of traffic they tie up is literally inconsequential. Though I will probably move all of that onto another server just to allow the main server the capabilities of dealing with almost exclusively dynamic content. Martin Foster Creator/Designer Ethereal Realms martin@ethereal-realms.org