Re: Slow performance with trivial self-joins

From: Adam Brusselback <adambrusselback(at)gmail(dot)com>
To: Benny Kramek <benny(at)medflyt(dot)com>
Cc: pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: Slow performance with trivial self-joins
Date: 2020-02-05 22:12:21
Message-ID: CAMjNa7cmCQb_rPhUU4E4JtCard51F_TuH1ZFp=xJJHyeku2wGQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

> You can create a library of
> reusable views that are small, easy-to-understand and readable. Then
> you build them up into bigger views, and finally query from them. But
> then you end up with lots of (hidden) self-joins.

I will concur with this use case being pretty common, but also something I
have actively avoided anywhere performance is important because of the
lack of this optimization.

Even still, I have 20+ views like that in my database.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message David Rowley 2020-02-05 23:47:11 Re: Slow performance with trivial self-joins
Previous Message Benny Kramek 2020-02-05 21:55:49 Re: Slow performance with trivial self-joins