AW: CTE with JOIN of two tables is much faster than a regular query

From: <kpi6288(at)gmail(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: AW: CTE with JOIN of two tables is much faster than a regular query
Date: 2018-08-18 16:33:30
Message-ID: 007201d43711$33120e20$99362a60$@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> -----Ursprüngliche Nachricht-----
> Von: Ravi Krishna <sravikrishna(at)aol(dot)com>
> Gesendet: Samstag, 18. August 2018 18:25
>
> > What can I do to improve the performance of the regular query without
> using a CTE?
>
> Why do you care ? When I find that I can write a SQL 3 different ways, I will
> go for the most efficient one. So why not accept the CTE version of this SQL.
> Just curious.

We're using object mapping / entity frameworks (e.g. XPO, Entity Framework Core). These frameworks support regular queries out-of-the box; a CTEs require additional effort and are more difficult to maintain.

Regards
Klaus

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2018-08-18 16:51:42 Re: regex match and special characters
Previous Message Ravi Krishna 2018-08-18 16:25:14 Re: CTE with JOIN of two tables is much faster than a regular query