Answering my own question

From: gerry(dot)smit(at)lombard(dot)ca
To: pgsql-novice(at)postgresql(dot)org
Subject: Answering my own question
Date: 2002-05-15 17:23:06
Message-ID: OFD8E58097.0018B879-ON85256BBA.005F1A50@lombard.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I found, on http://www.argudo.org/postgresql/soft-tuning-10.html my
answer. (Excellent site btw) What I need to do is prefix my SELECT
statements for this table with the statement :

SET enable_seqscan='false';

as in :

SET enable_seqscan='false';SELECT * FROM pol_xref_d WHERE policy_no=1200079
ORDER BY sequence;

This change makes the response sub-second , a great improvement over the
11+ seconds we're currently experiencing.

I'ld love any explanation of why the Query plan was going sequential versus
indexed.

Gerry

Browse pgsql-novice by date

  From Date Subject
Next Message Adam Erickson 2002-05-15 17:24:17 Re: Trouble with index in 7.1
Previous Message gerry.smit 2002-05-15 14:31:08 Trouble with index in 7.1