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 21BFE329F8A for ; Mon, 4 Oct 2004 18:39:03 +0100 (BST) 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 92935-04 for ; Mon, 4 Oct 2004 17:38:59 +0000 (GMT) Received: from davinci.ethosmedia.com (server226.ethosmedia.com [209.128.84.226]) by svr1.postgresql.org (Postfix) with ESMTP id F1789329F6A for ; Mon, 4 Oct 2004 18:38:59 +0100 (BST) Received: from [63.195.55.98] (account josh@agliodbs.com HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 6456240; Mon, 04 Oct 2004 10:40:21 -0700 From: Josh Berkus Organization: Aglio Database Solutions To: Steve Atkins Subject: Re: Performance suggestions for an update-mostly database? Date: Mon, 4 Oct 2004 10:38:14 -0700 User-Agent: KMail/1.6.2 Cc: pgsql-performance@postgresql.org References: <20041004174019.GA25671@gp.word-to-the-wise.com> In-Reply-To: <20041004174019.GA25671@gp.word-to-the-wise.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200410041038.14571.josh@agliodbs.com> 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: 200410/31 X-Sequence-Number: 8507 Steve, > I'm used to performance tuning on a select-heavy database, but this > will have a very different impact on the system. Does anyone have any > experience with an update heavy system, and have any performance hints > or hardware suggestions? Minimal/no indexes on the table(s). Raise checkpoint_segments and consider using commit_siblings/commit_delay if it's a multi-stream application. Figure out ways to do inserts instead of updates where possible, and COPY instead of insert, where possible. Put your WAL on its own disk resource. I'm a little curious as to what kind of app would be 95% writes. A log? -- Josh Berkus Aglio Database Solutions San Francisco