Re: Help Me Understand Why I'm Getting a Bad Query Plan
В списке pgsql-performance по дате отправления:
| От | Josh Berkus |
|---|---|
| Тема | Re: Help Me Understand Why I'm Getting a Bad Query Plan |
| Дата | |
| Msg-id | 49CAA85C.8080402@agliodbs.com обсуждение исходный текст |
| Ответ на | Re: Help Me Understand Why I'm Getting a Bad Query Plan (Bryan Murphy <bmurphy1976@gmail.com>) |
| Ответы |
Re: Help Me Understand Why I'm Getting a Bad Query Plan
|
| Список | pgsql-performance |
Bryan, > One thing to keep in mind, due to a lapse in our judgement at the > time, this itemexperiencelog table serves as both a current state > table, and a log table. Therefore, it potentially has multiple > redundant entries, but we typically only look at the most recent entry > to figure out the state of the current item. Oh, I see. It thinks that it'll need to pull 260,000 redundant rows in order to get 1800 unique ones. Only it's wrong; you're only pulling about 4000. Try increasing some stats still further: itemexperiencelog.visitorid and visitors.user_id both to 500. --Josh
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера