Re: Window functions speed

From: Michael Lewis <mlewis(at)entrata(dot)com>
To: Zahir Lalani <ZahirLalani(at)oliver(dot)agency>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Window functions speed
Date: 2020-08-19 19:53:28
Message-ID: CAHOFxGr4Gkd2FpFuLX7BC7cjxp_-wCA9wwcBnQx8EccyKDmLzA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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?

>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pól Ua Laoínecháin 2020-08-19 21:14:54 Re: Interpolation problem - pg 12.4 - full correct version!
Previous Message Joe Conway 2020-08-19 19:46:08 Re: Interpolation problem - pg 12.4 - full correct version!