Re: Improving N-Distinct estimation by ANALYZE

Поиск
Список
Период
Сортировка
От Lukas Smith
Тема Re: Improving N-Distinct estimation by ANALYZE
Дата
Msg-id 43C24060.8040307@pooteeweet.org
обсуждение исходный текст
Ответ на Re: Improving N-Distinct estimation by ANALYZE  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-hackers
Simon Riggs wrote:

> - yes, the random sampling is random - please read the code and comments
> 
> - yes, I would expect the results you get. If you sample 5% of rows and
> each block has on average at least 20 rows, then we should expect the
> majority of blocks to be hit.

and it seems from the benchmark posted to this list that random is 
_very_ expensive (probably because the random reads are spread out so 
well, that we do alot of I/O instead of just logical I/O from some cache)

regards,
Lukas


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Improving N-Distinct estimation by ANALYZE
Следующее
От: "Gregor Zeitlinger"
Дата:
Сообщение: Re: Incremental Backup Script