| От | Tomas Vondra |
|---|---|
| Тема | Re: SORT performance - slow? |
| Дата | |
| Msg-id | 4DD9982C.6000807@fuzzy.cz обсуждение исходный текст |
| Ответ на | SORT performance - slow? ("Strange, John W" <john.w.strange@jpmchase.com>) |
| Ответы |
Re: SORT performance - slow?
|
| Список | pgsql-performance |
Dne 19.5.2011 23:13, Strange, John W napsal(a): > Am I reading this right in that the sort is taking almost 8 seconds? You're probably reading it wrong. The sort itself takes about 1 ms (just subtract the numbers in "actual="). If you include all the overhead it takes about 2.3 seconds (the hash join ends at 12 sec, the sort at 14.3). Anyway, your real problem is probably stale stats. Run ANALYZE on the tables referenced in the query, the estimates are very off. All the rows expect 1 row but are getting 315k of them. regards Tomas
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера