pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guyren Howe <guyren@gmail.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Is there a good discussion of optimizations?
Date: Wed, 23 Dec 2020 17:55:57 -0800
Message-ID: <34fa7876-2346-4cb4-a094-d20963518286@Spark> (raw)
References: <f43f3b5b-cae9-4fac-93fd-22e92cd697b3@Spark>

I’d like to put together a good video and writeup about what the… philosophy behind relational databases is.

Most folks, in my experience, who use relational databases don’t really understand the basic theory or even more important the why — the philosophy — of what a relational database is and how to get the most out of them. I see a lot of folks trying to use SQL in an imperative manner — make this temp table, then update it some, then make this other temp table, etc… I see this particularly among analysts who for some reason often prefer SQL Server. I think this is down to afaict SQL Server having an abominable query optimizer. Comments on SQL Server’s query optimizer or this culture of temp tables are welcome.

Anyway, I’d like to put together something that explains this. I would go into Codd’s original insight and how simple yet powerful it is. I’d like to discuss how if you stick to SQL, rather than forcing it into this imperative straight-jacket, the database can work out all the details so you don’t have to do the bad things. It would be useful if there is some reasonably accessible discussion to go through the sort of query optimizations that Postgres can do for you, to convince folks that they can stick to describing what they want, not how to get it.

I’d be interested in any comments anyone has about useful things to discuss here, and in particular I’m interested in an accessible discussion of the sorts of query optimizations Postgres can do for us.

view thread (9+ messages)  latest in thread

Message-ID: <34fa7876-2346-4cb4-a094-d20963518286@Spark>
Permalink:  ../34fa7876-2346-4cb4-a094-d20963518286@Spark/
Also on:    postgresql.org/message-id/34fa7876-2346-4cb4-a094-d20963518286@Spark

 · 

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 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: guyren@gmail.com
  Subject: Re: Is there a good discussion of optimizations?
  In-Reply-To: <34fa7876-2346-4cb4-a094-d20963518286@Spark>
  References: <f43f3b5b-cae9-4fac-93fd-22e92cd697b3@Spark> <34fa7876-2346-4cb4-a094-d20963518286@Spark>

* 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