Re: Enabling and Disabling Sequencial Scan

Поиск
Список
Период
Сортировка
От Nikolaus Dilger
Тема Re: Enabling and Disabling Sequencial Scan
Дата
Msg-id 20030531080716.20944.h004.c001.wm@mail.dilger.cc.criticalpath.net
обсуждение исходный текст
Ответ на Enabling and Disabling Sequencial Scan  (Yusuf <yusuf0478@netscape.net>)
Ответы why Sequencial Scan when selecting on primary key of table?  ("Brian Tarbox" <btarbox@theworld.com>)
Список pgsql-performance
David,

I say go ahead and use it since you get a significant
performance gain.  This is a special case where you
know more about your data than the planer does with
general system wide settings.  In Oracle you could use
"hints".  Since there are no hints in PostgreSQL
disabling and reenabling an option just before and
after a query has the same effect.

Regards,
Nikolaus

On Fri, 30 May 2003 16:33:07 -0400, Yusuf wrote:

>
> In the application, that I'm working on, I have a
query
> that'll be a lot
> 60% faster if I disable sequential scan forcing it to
> you my index.
>
> Is it bad practice to disable sequential scan ( set
> enable_seqscan=false), run my query then enable
> sequential scan,
> whenever I'm running this query?  Why?
>
> Thanks in advance
>
> - David Wendy
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to
> majordomo@postgresql.org

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

Предыдущее
От: Robert Creager
Дата:
Сообщение: Re: Enabling and Disabling Sequencial Scan
Следующее
От: "Brian Tarbox"
Дата:
Сообщение: why Sequencial Scan when selecting on primary key of table?