pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Παρασκευη Πασσαρη <passari.paraskevi@gmail.com>
Cc: pgsql-performance@lists.postgresql.org
Subject: Re: Performance issues in query with multiple joins
Date: Fri, 28 Apr 2023 10:07:47 -0400
Message-ID: <1339836.1682690867@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKcH_XZNmmquh2w8oGtRyT+HyrEeodayaBd1QvcgmR69i=hN0A@mail.gmail.com>
References: <CAKcH_XZNmmquh2w8oGtRyT+HyrEeodayaBd1QvcgmR69i=hN0A@mail.gmail.com>

=?UTF-8?B?zqDOsc+BzrHPg866zrXPhc63IM6gzrHPg8+DzrHPgc63?= <passari.paraskevi@gmail.com> writes:
> We are facing a performance issue with the following query. Executing this
> query takes about 20 seconds.

Raising join_collapse_limit (to more than the number of joins in
the query) might help.  But I think really if performance is a
problem you should think about ditching the star schema design.

			regards, tom lane





view thread (4+ messages)  latest in thread

Message-ID: <1339836.1682690867@sss.pgh.pa.us>
Permalink:  ../1339836.1682690867@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1339836.1682690867@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, passari.paraskevi@gmail.com, pgsql-performance@lists.postgresql.org
  Subject: Re: Performance issues in query with multiple joins
  In-Reply-To: <1339836.1682690867@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox