Re: faster search - Mailing list pgsql-performance

From Steinar H. Gunderson
Subject Re: faster search
Date
Msg-id 20050610175132.GA17744@uio.no
Whole thread Raw
In response to faster search  (Clark Slater <list@slatech.com>)
List pgsql-performance
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/

pgsql-performance by date:

Previous
From: Clark Slater
Date:
Subject: faster search
Next
From: John A Meinel
Date:
Subject: Re: faster search