RE: Window functions speed

Поиск
Список
Период
Сортировка
От Zahir Lalani
Тема RE: Window functions speed
Дата
Msg-id DB8PR06MB6187896441F6366E76304524A75A0@DB8PR06MB6187.eurprd06.prod.outlook.com
обсуждение исходный текст
Ответ на Re: Window functions speed  (Michael Lewis <mlewis@entrata.com>)
Список pgsql-general

Confidential

From: Michael Lewis <mlewis@entrata.com>
Sent: 19 August 2020 20:53
To: Zahir Lalani <ZahirLalani@oliver.agency>
Cc: pgsql-general@postgresql.org
Subject: Re: Window functions speed

 

Where's the query? Are you able to run explain analyze so we can see estimates vs actual counts? What version are you using?

 

Can you share explain analyze before and after the window function? 

I mean, that limit at the top makes me think it is doing a lot less work without the window function, vs examining all candidate rows if we need to count them all. What are you using that count for anyway? Pagination?

 

 

 

Based on the hint here. We looked at the query and found most of the culprits were with a param that forced all accessible records – it should not have been there in most cases. We have removed that for most users and its fine !

 

В списке pgsql-general по дате отправления:

Предыдущее
От: "Ko, Christina"
Дата:
Сообщение: RE: EXTERNAL: Re: Loading Oracle Spatial Data to Postgresql
Следующее
От: Michael Lewis
Дата:
Сообщение: Misestimate when applying condition like id = id