Re: Select query takes long to execute

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Select query takes long to execute
Дата
Msg-id 20030530121311.GB8920@wolff.to
обсуждение исходный текст
Ответ на Re: Select query takes long to execute  (SZUCS Gábor <surrano@mailbox.hu>)
Список pgsql-performance
On Fri, May 30, 2003 at 10:57:33 +0200,
  SZUCS Gábor <surrano@mailbox.hu> wrote:
> Nikolaus,
>
> I think that shouldn't be any more effective. As I experienced, it's
> irrelevant how many cols an index has as long as you only use the first
> column. And, after that, if you use another column, how could a missing
> second column be any better?

Because the index will be more compact and reside on less disk blocks.
The planner also makes different guesses for the selectivity whne using
the first column of a multicolumn index as opposed to a single column
index.

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Table Relationships
Следующее
От: Adam Witney
Дата:
Сообщение: Hardware advice