From: kpi6288@gmail.com
To: pgsql-general@postgresql.org
Subject: AW: AW: CTE with JOIN of two tables is much faster than a regular query
Date: Sun, 19 Aug 2018 11:07:34 +0200
Message-ID: <007601d4379c$11991d20$34cb5760$@gmail.com> (raw)
In-Reply-To: <87ftzb5aiz.fsf@gmail.com>
References: <004b01d436d6$ff96c840$fec458c0$@gmail.com>
<807123113.9511341.1534609514205@mail.yahoo.com>
<007201d43711$33120e20$99362a60$@gmail.com>
<87ftzb5aiz.fsf@gmail.com>
> -----Ursprüngliche Nachricht-----
> Von: Tim Cross <theophilusx@gmail.com>
> Gesendet: Sonntag, 19. August 2018 04:57
> >
> > 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.
> >
>
> Ah, another reason to avoid object mapping/entity frameworks! I guess
> really the same reason - loss of flexibility and expressive power.
While I agree that you loose control over certain details, we are overall quite happy using the frameworks.
The frameworks nowadays provide the ability to call procedures if required - but using the objects directly is more convenient for the developers. SQL procedures add (just like a CTE) an additional layer to the application design which needs maintenance. That's fine if it really helps overall but we try to avoid it if it isn't needed.
Regards
Klaus
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: kpi6288@gmail.com
Subject: Re: CTE with JOIN of two tables is much faster than a regular query
In-Reply-To: <007601d4379c$11991d20$34cb5760$@gmail.com>
References: <004b01d436d6$ff96c840$fec458c0$@gmail.com> <807123113.9511341.1534609514205@mail.yahoo.com> <007201d43711$33120e20$99362a60$@gmail.com> <87ftzb5aiz.fsf@gmail.com> <007601d4379c$11991d20$34cb5760$@gmail.com>
* 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