Re: Bitmap scan cost model (was Re: bitmap scans, btree scans, and tid order)

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas DAZ SD
Тема Re: Bitmap scan cost model (was Re: bitmap scans, btree scans, and tid order)
Дата
Msg-id E1539E0ED7043848906A8FF995BDA5790C516F@m0143.s-mxs.net
обсуждение исходный текст
Список pgsql-hackers
> >Incrementing random_page_cost from 4 (the default) to 5 causes the
> >planner to make a better decision.
>
> We have such a low default random_page_cost primarily to mask other
> problems in the optimizer, two of which are
>
> . multi-column index correlation
>
> . interpolation between min_IO_Cost and max_IO_cost which approximates
> max_IO_cost too fast.

One other important figure here is concurrency. If you have a lot of backends
concurrently doing other IO, your sequential IO numbers will suffer more than
random IO numbers. Might be, that some super smart OS readahead implementation
aleviates that problem, but I have not yet experienced one.
Also less of random IO tends to get higher cache rates.

Thus I think if you are alone, 4 tends to be too low, while with concurrent load
4 tends to be too high. (All assuming farly large tables, that don't fit into RAM)

Andreas


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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: understanding bitmap index benefit
Следующее
От: "Zeugswetter Andreas DAZ SD"
Дата:
Сообщение: Re: Bitmap scan cost model (was Re: bitmap scans, btree scans, and tid order)