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 D2ADE9DC818 for ; Fri, 10 Feb 2006 13:24:45 -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 22863-09 for ; Fri, 10 Feb 2006 13:24:41 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.203]) by postgresql.org (Postfix) with ESMTP id B37099DC829 for ; Fri, 10 Feb 2006 13:24:40 -0400 (AST) Received: by uproxy.gmail.com with SMTP id m2so6231ugc for ; Fri, 10 Feb 2006 09:24:39 -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=RRl+vM68HNwuX3T4FyuqV+Iz9Uyg7c2ktY/T44Qz9ub3yE9hCigwpOTD1vhYPiRObVtzjJ8V0myegJ6Trkkt9/9+XbcxMIAiKf8HTgdDnVf6LpDIbQghtBt4Z3AlBUnqkBpEr7DKhpY40DAu6k/thpaD504aDdslCu0XyqitWso= Received: by 10.66.221.11 with SMTP id t11mr4920669ugg; Fri, 10 Feb 2006 09:24:39 -0800 (PST) Received: by 10.66.221.12 with HTTP; Fri, 10 Feb 2006 09:24:39 -0800 (PST) Message-ID: <1ca1c1410602100924s191e7cddo4bda80d8f8d7cb6d@mail.gmail.com> Date: Fri, 10 Feb 2006 09:24:39 -0800 From: Aaron Turner To: "Matthew T. O'Connor" Subject: Re: 10+hrs vs 15min because of just one index Cc: pgsql-performance@postgresql.org In-Reply-To: <43ECC9BF.2030107@zeut.net> 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> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200602/106 X-Sequence-Number: 17092 On 2/10/06, Matthew T. O'Connor wrote: > Aaron Turner wrote: > > So I'm trying to figure out how to optimize my PG install (8.0.3) to > > get better performance without dropping one of my indexes. > > What about something like this: > > begin; > drop slow_index_name; > update; > create index slow_index_name; > commit; > vacuum; Right. That's exactly what I'm doing to get the update to occur in 15 minutes. Unfortunately though, I'm basically at the point of every time I insert/update into that table I have to drop the index which is making my life very painful (having to de-dupe records in RAM in my application is a lot faster but also more complicated/error prone). Basically, I need some way to optimize PG so that I don't have to drop that index every time. Suggestions? -- Aaron Turner http://synfin.net/