join_collapse_limit = 14

From: Andreas Joseph Krogh <andreas(at)visena(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: join_collapse_limit = 14
Date: 2017-01-07 16:33:52
Message-ID: VisenaEmail.1.997d8943b49bee2c.15979b438c7@tc7-visena
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all.
 
I have a query which takes forever and the only way I've been able to make it
perform reasonably well is increasing join_collapse_limit to 14 (12 still
produced lots of nest-loops).
This way lots of nest-loops (which I think caused the slowness) was made into
hash-joins and performance was acceptable again.
 
I wonder; In general, is there any downside of having join_collapse_limit = 14
on modern hardware (32 cores, 64GB RAM), and geqo_threshold=16 ?
I'm aware of it increasing planning-time, but is this really an issue in
practice?
 
Thanks.
 
-- Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
andreas(at)visena(dot)com <mailto:andreas(at)visena(dot)com>
www.visena.com <https://www.visena.com>
<https://www.visena.com>

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Joseph Krogh 2017-01-07 16:42:36 Re: join_collapse_limit = 14
Previous Message Adrian Klaver 2017-01-07 15:18:14 Re: R: Postgres 9.6.1 big slowdown by upgrading 8.4.22