RE: Big performance slowdown from 11.2 to 13.3

ldh@laurent-hasson.com <ldh@laurent-hasson.com>

From: "ldh@laurent-hasson.com" <ldh@laurent-hasson.com>
To: Michael Lewis <mlewis@entrata.com>
Cc: "pgsql-performance@postgresql.org" <pgsql-performance@postgresql.org>
Date: 2021-07-21T23:31:06Z
Lists: pgsql-performance
From: Michael Lewis <mlewis@entrata.com> 
Sent: Wednesday, July 21, 2021 18:12
To: ldh@laurent-hasson.com
Cc: pgsql-performance@postgresql.org
Subject: Re: Big performance slowdown from 11.2 to 13.3

I'm not seeing the valueof the CTE. Why not access assessmenticcqa_raw directly in the main query and only do GROUP BY once? Do you have many values in iccqar_ques_code which are not used in this query?




Yes, there are close to 600 different values, and we are picking up only a small amount. And by the way, this is a classic case where the query could be folder as a sub-select in a join clause, and I tried this as well, with the same results.

Thank you,
Laurent.

Commits

  1. Get rid of artificial restriction on hash table sizes on Windows.