Re: simple select-statement takes more than 25 sec
От
Cao Duy
Тема
Re: simple select-statement takes more than 25 sec
Дата
Msg-id
1100085737.3980.43.camel@Knoppix
Ответ на
Re: simple select-statement takes more than 25 sec (Steinar H. Gunderson)
Список
Дерево обсуждения
simple select-statement takes more than 25 sec Cao Duy <cao.duy@1und1.com>
Re: simple select-statement takes more than 25 sec "Steinar H. Gunderson" <sgunderson@bigfoot.com>
Re: simple select-statement takes more than 25 sec Cao Duy <cao.duy@1und1.com>
Re: simple select-statement takes more than 25 sec "Steinar H. Gunderson" <sgunderson@bigfoot.com>
Am Mi, den 10.11.2004 schrieb Steinar H. Gunderson um 11:17: > 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. there is an index on customer_id create table customer( ... CONSTRAINT customer_pkey PRIMARY KEY (customer_id), ... ) > /* Steinar */
В списке pgsql-performance по дате отправления
От: Steinar H. Gunderson
Дата: