Re: Nested loop vs merge join: inconsistencies between estimated and actual time
В списке pgsql-performance по дате отправления:
| От | Vlad Arkhipov |
|---|---|
| Тема | Re: Nested loop vs merge join: inconsistencies between estimated and actual time |
| Дата | |
| Msg-id | 47D5E5CC.7020403@dc.baikal.ru обсуждение исходный текст |
| Ответ на | Re: Nested loop vs merge join: inconsistencies between estimated and actual time (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-performance |
Vlad Arkhipov <arhipov@dc.baikal.ru> writes:I've came across this issue while writing report-like query for 2 not very large tables. I've tried several methods to resolve this one (see below). But now I'm really stuck...It looks like you are wishing to optimize for all-in-memory situations, in which case the traditional advice is to reduce random_page_cost to something close to 1. AFAICS all the rowcount estimates you're seeing are spot on, or as close to spot on as you could realistically hope for, and so the problem lies with the cost parameters. Fooling with the statistics is not going to help if the rowcount estimates are already good.
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера