Re: index scan of whole table, can't see why

Поиск
Список
Период
Сортировка
От Dan Langille
Тема Re: index scan of whole table, can't see why
Дата
Msg-id 41EF7C85.4180.D46F54D@localhost
обсуждение исходный текст
Ответ на Re: index scan of whole table, can't see why  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Ответы Re: index scan of whole table, can't see why  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-performance
On 20 Jan 2005 at 6:14, Stephan Szabo wrote:

> On Wed, 19 Jan 2005, Dan Langille wrote:
>
> > Hi folks,
> >
> > Running on 7.4.2, recently vacuum analysed the three tables in
> > question.
> >
> > The query plan in question changes dramatically when a WHERE clause
> > changes from ports.broken to ports.deprecated.  I don't see why.
> > Well, I do see why: a sequential scan of a 130,000 rows.  The query
> > goes from 13ms to 1100ms because the of this.  The full plans are at
> > http://rafb.net/paste/results/v8ccvQ54.html
> >
> > I have tried some tuning by:
> >
> >   set effective_cache_size to 4000, was 1000
> >   set random_page_cost to 1, was 4
> >
> > The resulting plan changes, but no speed improvment, are at
> > http://rafb.net/paste/results/rV8khJ18.html
> >
> > Any suggestions please?
>
> As a question, what does it do if enable_hashjoin is false? I'm wondering
> if it'll pick a nested loop for that step for the element/ports join and
> what it estimates the cost to be.

With enable_hashjoin = false, no speed improvement.  Execution plan
at http://rafb.net/paste/results/qtSFVM72.html

thanks
--
Dan Langille : http://www.langille.org/
BSDCan - The Technical BSD Conference - http://www.bsdcan.org/


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

Предыдущее
От: Hervé Piedvache
Дата:
Сообщение: Re: PostgreSQL clustering VS MySQL clustering
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: PostgreSQL clustering VS MySQL clustering