Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ksFrd-0001tZ-VJ for pgsql-general@arkaria.postgresql.org; Thu, 24 Dec 2020 01:56:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ksFrc-0001GL-NH for pgsql-general@arkaria.postgresql.org; Thu, 24 Dec 2020 01:56:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ksFrc-0001GD-DK for pgsql-general@lists.postgresql.org; Thu, 24 Dec 2020 01:56:24 +0000 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ksFrZ-0005su-So for pgsql-general@lists.postgresql.org; Thu, 24 Dec 2020 01:56:24 +0000 Received: by mail-pj1-x1034.google.com with SMTP id j13so374337pjz.3 for ; Wed, 23 Dec 2020 17:56:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:references:subject:mime-version; bh=n/9Vn1nw+V75Om9INQ/BdkYpg/HFa7sTZKf1Xd/Wu7A=; b=bbih2Pcrpm7zFHOVsqHDNc10FRc9rtlNUhoLf2Kpc4Y5cwp0Pz1WTEwCYjhXKpBro7 LKvPqwYNJrOpjzaPkvFBJIch/Hg9qupZ3rf7xsKM6I5WDGwnJNcoTuwZMPHZHkTQtQGD QB0Z0CSjSL84Ob1cehMSwJrYHnq67k4gFsPzSHVsPyt1b64AmKdb46A0g9cJu6WTWdI9 WPJwtmOU1W7fgjrKLFNIY00F0ycqsOUj59/1kiMX5je9QHapKecFVD1viRDshgHzaKN7 w/wiiQjyC/huwRLQJhB3JtXOSO45287uUnWgI2i3AFUTtyrDNyuBbVDz35IClEd9FL0P fWxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:message-id:references:subject :mime-version; bh=n/9Vn1nw+V75Om9INQ/BdkYpg/HFa7sTZKf1Xd/Wu7A=; b=YYgFzW5mWNO/keAZiqt5kBu9kL7lZh1XmuT2Pda8+Z8FGrMeYeowmW5hoewTSqS2yK dGgYzQgCvqIshCHCazLTLhe7y90b2n3sJfUYhKKYXI5cxWNnyEUD9G2q2mrcBckWdZ7x Yuqk061BkyRTO9K/kV0+Dvh1LnBftMPaghYdbNu/BrZyi6umGsv/U2iUAwooRYa2GieE l3W13reQ4JLNE6rqjKox9SCTdaJqg+xtsq88pygURW4+8h2WrTYw2IuulkUndjseURfE yDcQqtBv7Q8ufBoFk9IQMLO33fWx+px35Q7MXqQf4yE0udNSkbIstAw4TsaAmKWLbbGb 9QQw== X-Gm-Message-State: AOAM530hxNdoCt4hcWD9ajvame89+GwDH9NXfJfh4mA0necOo+l3jr48 V/anPVfEPgRgL88YMGxRuk2cY8v0z6f8vg== X-Google-Smtp-Source: ABdhPJxNr5SIg9ghh8z/RKl4+gQDDJamfI7Z7twiL2AULttDCY5ekrjteKfgrhj2vD9v/A16bgj+VQ== X-Received: by 2002:a17:902:8a8a:b029:db:e003:4044 with SMTP id p10-20020a1709028a8ab02900dbe0034044mr27821440plo.19.1608774979346; Wed, 23 Dec 2020 17:56:19 -0800 (PST) Received: from [2600:8801:8800:11:207b:d18b:200:0] ([2600:8801:8800:11::a]) by smtp.gmail.com with ESMTPSA id h17sm24292283pfc.119.2020.12.23.17.56.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Dec 2020 17:56:18 -0800 (PST) Date: Wed, 23 Dec 2020 17:55:57 -0800 From: Guyren Howe To: "=?utf-8?Q?pgsql-general=40lists.postgresql.org?=" Message-ID: <34fa7876-2346-4cb4-a094-d20963518286@Spark> References: Subject: Is there a good discussion of optimizations? X-Readdle-Message-ID: 34fa7876-2346-4cb4-a094-d20963518286@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="5fe3f541_2901d82_c3ff" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --5fe3f541_2901d82_c3ff Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I=E2=80=99d like to put together a good video and writeup about what the=E2= =80=A6 philosophy behind relational databases is. Most folks, in my experience, who use relational databases don=E2=80=99t = really understand the basic theory or even more important the why =E2=80=94= the philosophy =E2=80=94 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 imper= ative manner=C2=A0=E2=80=94 make this temp table, then update it some, th= en make this other temp table, etc=E2=80=A6 I see this particularly among= analysts who for some reason often prefer SQL Server. I think this is do= wn to afaict SQL Server having an abominable query optimizer. Comments on= SQL Server=E2=80=99s query optimizer or this culture of temp tables are = welcome. Anyway, I=E2=80=99d like to put together something that explains this. I = would go into Codd=E2=80=99s original insight and how simple yet powerful= it is. I=E2=80=99d like to discuss how if you stick to SQL, rather than = forcing it into this imperative straight-jacket, the database can work ou= t all the details so you don=E2=80=99t have to do the bad things. It woul= d be useful if there is some reasonably accessible discussion to go throu= gh the sort of query optimizations that Postgres can do for you, to convi= nce folks that they can stick to describing what they want, not how to ge= t it. I=E2=80=99d be interested in any comments anyone has about useful things = to discuss here, and in particular I=E2=80=99m interested in an accessibl= e discussion of the sorts of query optimizations Postgres can do for us. --5fe3f541_2901d82_c3ff Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
I=E2=80=99d like to put together a good video and w= riteup about what the=E2=80=A6 philosophy behind relational databases is.=

Most folks, in my experience, who use relational databases don=E2=80=99t = really understand the basic theory or even more important the why =E2=80=94= the philosophy =E2=80=94 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 imper= ative manner&=23160;=E2=80=94 make this temp table, then update it some, = then make this other temp table, etc=E2=80=A6 I see this particularly amo= ng 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=E2=80=99s query optimizer or this culture of temp tables ar= e welcome.

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

I=E2=80=99d be interested in any comments anyone has about useful things = to discuss here, and in particular I=E2=80=99m interested in an accessibl= e discussion of the sorts of query optimizations Postgres can do for us.<= /div>
--5fe3f541_2901d82_c3ff--