Answering my own question

Поиск
Список
Период
Сортировка
От gerry.smit@lombard.ca
Тема Answering my own question
Дата
Msg-id OFD8E58097.0018B879-ON85256BBA.005F1A50@lombard.ca
обсуждение исходный текст
Список 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




В списке pgsql-novice по дате отправления:

Предыдущее
От: Manuel Sugawara
Дата:
Сообщение: Re: Answering my own question
Следующее
От: ghaverla@freenet.edmonton.ab.ca
Дата:
Сообщение: Re: Answering my own question