Re: simple select-statement takes more than 25 sec - Mailing list pgsql-performance

From Steinar H. Gunderson
Subject Re: simple select-statement takes more than 25 sec
Date
Msg-id 20041110101747.GB22780@uio.no
Whole thread Raw
In response to simple select-statement takes more than 25 sec  (Cao Duy <cao.duy@1und1.com>)
Responses Re: simple select-statement takes more than 25 sec
List pgsql-performance
On Wed, Nov 10, 2004 at 10:35:50AM +0100, Cao Duy wrote:
> here is my simple select-statement:
> SELECT * FROM CUSTOMER WHERE CUSTOMER_ID=5

It seems like you're missing an index on customer_id. Set it to PRIMARY KEY
or do an explicit CREATE INDEX (followed by an ANALYZE) and it should be a
lot faster.

/* Steinar */
--
Homepage: http://www.sesse.net/

pgsql-performance by date:

Previous
From: Cao Duy
Date:
Subject: simple select-statement takes more than 25 sec
Next
From: "gnari"
Date:
Subject: Re: simple select-statement takes more than 25 sec