X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id D33439FA4C5 for ; Wed, 20 Sep 2006 08:07:50 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 49885-04-3 for ; Wed, 20 Sep 2006 08:07:42 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id 95FE59FA1FD for ; Wed, 20 Sep 2006 08:07:42 -0300 (ADT) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1GQ0Bu-0002UI-Uz for pgsql-performance@postgresql.org; Wed, 20 Sep 2006 07:24:35 -0400 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id CAE764051; Wed, 20 Sep 2006 07:07:31 -0400 (EDT) Date: Wed, 20 Sep 2006 07:07:31 -0400 From: Andrew Sullivan To: pgsql-performance@postgresql.org Subject: Re: Update on high concurrency OLTP application and Postgres 8 tuning Message-ID: <20060920110731.GB18219@phlogiston.dyndns.org> References: <45110543.6020501@streppone.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45110543.6020501@streppone.it> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.204 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200609/266 X-Sequence-Number: 20952 On Wed, Sep 20, 2006 at 11:09:23AM +0200, Cosimo Streppone wrote: > > I scheduled a cron job every hour or so that runs an analyze on the > 4/5 most intensive relations and sleeps 30 seconds between every > analyze. > > This has optimized db response times when many clients run together. > I wanted to report this, maybe it can be helpful for others > out there... :-) This suggests to me that your statistics need a lot of updating. You _might_ find that setting the statistics to a higher number on some columns of some of your tables will allow you to analyse less frequently. That's a good thing just because ANALYSE will impose an I/O load. A -- Andrew Sullivan | ajs@crankycanuck.ca A certain description of men are for getting out of debt, yet are against all taxes for raising money to pay it off. --Alexander Hamilton