| От | Josh Berkus |
|---|---|
| Тема | Re: best statistic target for boolean columns |
| Дата | |
| Msg-id | 200409271131.09932.josh@agliodbs.com обсуждение |
| Ответ на | best statistic target for boolean columns (Gaetano Mendola <mendola@bigfoot.com>) |
| Ответы |
Re: best statistic target for boolean columns
|
| Список | pgsql-performance |
Gaetano, > don't you think the best statistic target for a boolean > column is something like 2? Or in general the is useless > have a statistics target > data type cardinality ? It depends, really, on the proportionality of the boolean values; if they're about equal, I certainly wouldn't raise Stats from the default of 10. If, however, it's very dispraportionate -- like 2% true and 98% false -- then it may pay to have better statistics so that the planner doesn't assume 50% hits, which it otherwise might. -- --Josh Josh Berkus Aglio Database Solutions San Francisco
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера