| От | Steinar H. Gunderson |
|---|---|
| Тема | Re: speed up query with max() and odd estimates |
| Дата | |
| Msg-id | 20050426204853.GA29424@uio.no обсуждение исходный текст |
| Ответ на | speed up query with max() and odd estimates (Matthew Nuzum <mattnuzum@gmail.com>) |
| Ответы |
Re: speed up query with max() and odd estimates
Re: speed up query with max() and odd estimates |
| Список | pgsql-performance |
On Tue, Apr 26, 2005 at 03:16:57PM -0500, Matthew Nuzum wrote: > Seq Scan on usage_access (cost=0.00..1183396.40 rows=12713851 > width=116) (actual time=481796.22..481839.43 rows=3343 loops=1) That's a gross misestimation -- four orders of magnitude off! Have you considering doing this in two steps, first getting out whatever comes from the subquery and then doing the query? Have you ANALYZEd recently? Do you have an index on atime? /* Steinar */ -- Homepage: http://www.sesse.net/
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера