Re: Slow query with 3 table joins

From: Johan Fredriksson <eskil(at)kth(dot)se>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Slow query with 3 table joins
Date: 2017-04-26 11:35:57
Message-ID: 1493206557.30225.5.camel@kth.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


> Hi Eskil -
>
>
> The I believe the id-field you're referring to is the UNIT.UNIT_ID, I
> could change this to a varchar, however that column is not used in the
> query in question, so that wouldn't have any effect on the query's
> performance.

Sorry, I did not notice that the column "unit_id" existed in both "unit"
and "field" tables.

/ Eskil

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Gerardo Herzig 2017-04-26 12:27:19 Re: Slow query with 3 table joins
Previous Message Alessandro Ferrucci 2017-04-26 11:35:35 Re: Slow query with 3 table joins