Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 0A7E82E0131 for ; Wed, 4 Jun 2008 03:04:16 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 09249-05-3 for ; Wed, 4 Jun 2008 03:03:52 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by developer.postgresql.org (Postfix) with ESMTP id 5AEDF2E00DE for ; Wed, 4 Jun 2008 03:02:35 -0300 (ADT) Received: by wa-out-1112.google.com with SMTP id n4so1061008wag.5 for ; Tue, 03 Jun 2008 23:02:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=OzUkDFvybT3V+dFque2J9l6jVC1c1zHG3alvLFM/IyQ=; b=YW80rFktVy6cdWjf/6FU4kOEm3yArIOrz8U6104kQDEyKoQPjvWnWC6vujt77fkWy7Lo/DymDOJAKMj+G7K0nZb5KFE+M7GDYuZ5ETdkT/+I6cZC9WpHsI0UvXeRQzWapoJqPRznSlJMIq5r1hRjXIp1Kdwf8lHKoBSjH+pFlcg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YOVeIgvbuCrlF14s5Dn5doOc7ToQGEm6sDYJT1eSsjqJ01wuNFdeBTehSQTFrIR0sAFHD2pHadZImT6ua6v8NgBIrk3AnOyGFKFJgB7C8G6ZR6Yt6w6vAg3dRufGeAfywLYGi4rgJn4KmMfY3MNcSR4v/QcNgsjAP0AbxDyG5k4= Received: by 10.114.38.2 with SMTP id l2mr12312630wal.69.1212559354539; Tue, 03 Jun 2008 23:02:34 -0700 (PDT) Received: by 10.114.130.17 with HTTP; Tue, 3 Jun 2008 23:02:34 -0700 (PDT) Message-ID: Date: Wed, 4 Jun 2008 00:02:34 -0600 From: "Scott Marlowe" To: "andrew klassen" Subject: Re: insert/update tps slow with indices on table > 1M rows Cc: pgsql-performance@postgresql.org In-Reply-To: <691681.3510.qm@web37304.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <691681.3510.qm@web37304.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/16 X-Sequence-Number: 30366 On Tue, Jun 3, 2008 at 4:36 PM, andrew klassen wrote: > The cpu load is not that high, i.e. plenty of idle cpu. I am running an > older > version of freebsd and the iostat output is not very detailed. > During this time, the number is low < 10Mbs. The system has an > LSI Logic MegaRAID controller with 2 disks. > > Any ideas on how to find the bottleneck/decrease overhead of index usage. Older versions of BSD can be pretty pokey compared to the 6.x and 7.x branches. I seriously consider upgrading to 7 if possible. The cost of maintaining indexes is always an issue. There are a few things you can do to help out. Partitioning and having fewer indexes are what I'd recommend.