Re: Speed difference between select ... union select ... and select from partitioned_table
В списке pgsql-performance по дате отправления:
| От | Pablo Alcaraz |
|---|---|
| Тема | Re: Speed difference between select ... union select ... and select from partitioned_table |
| Дата | |
| Msg-id | 4723BC36.8000300@laotraesquina.com.ar обсуждение исходный текст |
| Ответ на | Re: Speed difference between select ... union select ... and select from partitioned_table (Pablo Alcaraz <pabloa@laotraesquina.com.ar>) |
| Список | pgsql-performance |
If you raise work_mem enough to let the second query use a hash aggregate (probably a few MB would do it), I think it'll be about the same speed as the first one. The reason it's not picking that on its own is the overestimate of the number of resulting groups. This is because get_variable_numdistinct is not smart about append relations. We should try to fix that sometime...
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера