Re: Proposal - improve eqsel estimates by including histogram bucket numdistinct statistics
В списке pgsql-hackers по дате отправления:
| От | Nathan Boley |
|---|---|
| Тема | Re: Proposal - improve eqsel estimates by including histogram bucket numdistinct statistics |
| Дата | |
| Msg-id | 6fa3b6e20806121055y104236u2a10179cf3626c25@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: Proposal - improve eqsel estimates by including histogram bucket numdistinct statistics (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Proposal - improve eqsel estimates by including histogram bucket numdistinct statistics
|
| Список | pgsql-hackers |
> Assuming that the threshold > for switching to an indexscan is somewhere around selectivity 0.005 > (I am not certain offhand, but it's in that general area), this cannot > possibly require more than 200 MCV slots, and for most data > distributions it'd be a whole lot less. Thats a really good point. > Given such an MCV list, the planner will always make the right choice > of whether to do index or seqscan Given that, wouldn't it be smarter to consider a value as an mcv candidate iff it has a density greater than 0.005, rather than having a count greater than 1.5*average? This would allow people to raise the hard mcv limit without having to worry as much about including worthless mcv values... Cheers, Nathan
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера