Re: Forcing the use of particular execution plans

Поиск
Список
Период
Сортировка
От Ron Mayer
Тема Re: Forcing the use of particular execution plans
Дата
Msg-id 4522FBDC.3030706@cheapcomplexdevices.com
обсуждение исходный текст
Ответ на Re: Forcing the use of particular execution plans  ("Jim C. Nasby" <jim@nasby.net>)
Ответы Re: Forcing the use of particular execution plans  ("Jim C. Nasby" <jim@nasby.net>)
Список pgsql-performance
Jim C. Nasby wrote:
>
> Index scans are also pretty picky about correlation. If you have really
> low correlation you don't want to index scan,

I'm still don't think "correlation" is the right metric
at all for making this decision.

If you have a list of addresses clustered by "zip"
the "correlation" of State, City, County, etc will all be zero (since
the zip codes don't match the alphabetical order of state or city names)
but index scans are still big wins because the data for any given
state or city will be packed on the same few pages - and in fact
the pages could be read mostly sequentially.

> but I think our current
> estimates make it too eager to switch to a seqscan.

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

Предыдущее
От: "Adnan DURSUN"
Дата:
Сообщение: Re: PostgreSQL Caching
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Forcing the use of particular execution plans