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 DAA3B52823 for ; Fri, 10 Jun 2005 14:51:49 -0300 (ADT) 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 98527-08 for ; Fri, 10 Jun 2005 17:51:40 +0000 (GMT) Received: from cassarossa.samfundet.no (cassarossa.samfundet.no [129.241.93.19]) by svr1.postgresql.org (Postfix) with ESMTP id D7C3B52875 for ; Fri, 10 Jun 2005 14:51:39 -0300 (ADT) Received: from trofast.sesse.net ([129.241.93.32]) by cassarossa.samfundet.no with esmtp (Exim 4.50) id 1DgnfK-0006Jk-Ez for pgsql-performance@postgresql.org; Fri, 10 Jun 2005 19:51:37 +0200 Received: from sesse by trofast.sesse.net with local (Exim 3.36 #1 (Debian)) id 1DgnfI-0004ei-00 for ; Fri, 10 Jun 2005 19:51:32 +0200 Date: Fri, 10 Jun 2005 19:51:32 +0200 From: "Steinar H. Gunderson" To: pgsql-performance@postgresql.org Subject: Re: faster search Message-ID: <20050610175132.GA17744@uio.no> Mail-Followup-To: pgsql-performance@postgresql.org References: <20050610132812.R94573@vbp2.vbp2.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20050610132812.R94573@vbp2.vbp2.com> X-Operating-System: Linux 2.6.11.8 on a i686 X-Message-Flag: Outlook? --> http://www.mozilla.org/products/thunderbird/ User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.02 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/244 X-Sequence-Number: 12881 On Fri, Jun 10, 2005 at 01:45:05PM -0400, Clark Slater wrote: > Indexes: > "test_id" btree (id) > "test_plid" btree (productlistid) > "test_typeid" btree (typeid) > "test_plidtypeid" btree (productlistid, typeid) > > > explain analyze select * from test where productlistid=3 and typeid=9 > order by partnumber limit 15; You do not have an index on partnumber. Try adding one. /* Steinar */ -- Homepage: http://www.sesse.net/