Re: cannot use multicolumn index

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: cannot use multicolumn index
Дата
Msg-id CAOR=d=2dPOryEJ4di129RwhGR1pC3eCxrhUnboML9t23+Xv+Sw@mail.gmail.com
обсуждение исходный текст
Ответ на cannot use multicolumn index  (MirrorX <mirrorx@gmail.com>)
Список pgsql-performance
On Wed, Sep 14, 2011 at 6:50 AM, MirrorX <mirrorx@gmail.com> wrote:
> any ideas on how i should write to query to use this index? thx in advance

You can do something like:

set enable_seqscan=off;
explain select yourqueryhere;

and see if the plan it comes up with is any better.  Use explain
analyze to see how long it really takes.  Basically if the index isn't
selective enough a seq scan will be a win, especially in pgsql where
it has to hit the table anyway, whether it uses the index or not.

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: cannot use multicolumn index
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: How to make hash indexes fast