X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 44B739DC811 for ; Tue, 14 Feb 2006 19:14:06 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 91307-08 for ; Tue, 14 Feb 2006 19:14:06 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.199]) by postgresql.org (Postfix) with ESMTP id D78E79DC9ED for ; Tue, 14 Feb 2006 19:14:01 -0400 (AST) Received: by uproxy.gmail.com with SMTP id m2so821660ugc for ; Tue, 14 Feb 2006 15:14:03 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=l0qMKjD4ry6BNsfRsLwrKbsmFHC5id4uzVXDEDS4V6Bti96OJgrVdEaMnv3Ln7QavT1lRbjm/FqOW7sOr7CoXbLGdVTSOpLRgZfk6LmN2C0g8bAYLNA3kLcfO+t4OXqO4OGRhaHp/2WZoGd7TxefElGZssqTNItMsHyiwq91Wd8= Received: by 10.66.166.3 with SMTP id o3mr1615495uge; Tue, 14 Feb 2006 15:14:03 -0800 (PST) Received: by 10.66.221.12 with HTTP; Tue, 14 Feb 2006 15:14:03 -0800 (PST) Message-ID: <1ca1c1410602141514w2bcd1401p7c417241030c0778@mail.gmail.com> Date: Tue, 14 Feb 2006 15:14:03 -0800 From: Aaron Turner To: pgsql-performance@postgresql.org Subject: Re: 10+hrs vs 15min because of just one index Cc: Tom Lane , "Jim C. Nasby" , "Matthew T. O'Connor" , PFC In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1ca1c1410602100016p2b5fdcc4wbf45612d7efc5fdf@mail.gmail.com> <43ECC9BF.2030107@zeut.net> <1ca1c1410602100924s191e7cddo4bda80d8f8d7cb6d@mail.gmail.com> <20060211212453.GT57845@pervasive.com> <1ca1c1410602112358h1e0e9696lff8f172769dc587e@mail.gmail.com> <16809.1139759674@sss.pgh.pa.us> <1ca1c1410602121133y279ea488nc38f049ac6ebc7f4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.231 required=5 tests=[AWL=0.231] X-Spam-Score: 0.231 X-Spam-Level: X-Archive-Number: 200602/184 X-Sequence-Number: 17170 Well just a little update: 1) Looks like I'm definately RAM constrained. Just placed an order for another 4GB. 2) I ended up dropping the primary key too which helped with disk thrashing a lot (average disk queue wait was between 500ms and 8500ms before and 250-500ms after) 3) Playing with most of the settings in the postgresql.conf actually dropped performance significantly. Looks like I'm starving the disk cache. 4) I'm going to assume going to a bytea helped some (width is 54 vs 66) but nothing really measurable Thanks everyone for your help! -- Aaron Turner http://synfin.net/