Re: index problems (again)

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема Re: index problems (again)
Дата
Msg-id CAMkU=1wmuTYGqhfrZseUYcGc6vftZJqo_BaNZWS1GSaw6aWCNQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: index problems (again)  (Geoff Winkless <pgsqladmin@geoff.dj>)
Список pgsql-general
On Mon, Mar 7, 2016 at 8:37 AM, Geoff Winkless <pgsqladmin@geoff.dj> wrote:
>
> But as far as I can see, apart from the absolute extremes, the
> index-only scan is _always_ going to be quicker than the index+table
> scan.

If relallvisible is zero, it thinks it gets zero benefit from an index
only scan.  It thinks that using a larger index has a small, but
non-zero, cost over the smaller index.

> We can see that by the massive speedup I get by
> using index(scid,scdate), which in all other respects is going to
> suffer from exactly the same problem from that the scid-only index
> suffers.

What massive speedup?  (scid,scdate) is the index it *does* use in
your worse demonstrated
case.


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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: index problems (again)
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: index problems (again)