Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fOp1U-0003Jh-PG for pgsql-general@arkaria.postgresql.org; Fri, 01 Jun 2018 18:43:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fOp1T-0001Ai-0B for pgsql-general@arkaria.postgresql.org; Fri, 01 Jun 2018 18:43:35 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fOp1S-0001AZ-HQ for pgsql-general@lists.postgresql.org; Fri, 01 Jun 2018 18:43:34 +0000 Received: from mail-oi0-x242.google.com ([2607:f8b0:4003:c06::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fOp1P-0003jB-E9 for pgsql-general@lists.postgresql.org; Fri, 01 Jun 2018 18:43:33 +0000 Received: by mail-oi0-x242.google.com with SMTP id l22-v6so15588368oib.4 for ; Fri, 01 Jun 2018 11:43:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=g8EDHK5kf5YxLJYxLkiNEmDx0ERzeHOKZuYaxaDqPuM=; b=lT+sTFeuPejEfNqHhPzjETGRxpVoOiEPfAtCIex7WgVOrC9FQ+wgXsc3ysOp2lb2Uy /HEpGJ6Go0XjYIaEZ+OL2rvlBKdNzkOFyCMXEdlLnq6V1eGd+6VSkMMjaadxBHaOMjke sgBVmFSW8dV+fj5Wj9qGZTzOQYb9TdGOAaNqyXL3hq5K1xXiugphxQdvOhPJ2+zGrRC2 5V7btJnzmGHIJC2GNdElXLLOKXdbJvq+Cg4r7JXEo7m4JKbrAEjLlruLlxT3Nl8Ypg34 JOKWfTi/aPXi/xjzjDOxsUgObqecbY2Bmg0KOcfRZCkymoBaL78jGQvE8aNLSCaLAtbv 8Iqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=g8EDHK5kf5YxLJYxLkiNEmDx0ERzeHOKZuYaxaDqPuM=; b=EIsl6wXGnq5jLWA8iHsj/EgENNc3ZRtD+yCKqREPb1mzOf+S0oTEb5i8Ol9BYisOxS Rii1LgP7JniuyDP6jmsDaD0gwSPLPq5ptrl4lz4aoKHSdqN4iROaZSScQkgS7mJ4lXOx SbxpFAmZ6x5qHJogk4ClkajrTgKkylxG418zmxKiDsr2ILA+A2VT/V3i9ee5xoFImIlT c0W2g4d35rVk6NJOekjGJJ7r7cYQW2Ui+Bb3kWkaS5xUNrTHc8CCuOy3ACX0hOVbemj2 awwWy0nOMg9T3wNo4boI6l7lqHnFSUjbRRG6SFANsMiFFz2aYhL77WETbFtuQ1erBYgt eFQQ== X-Gm-Message-State: ALKqPwdMe4ElRVsoauS3DgeLvrW5MaGtWnlBeU8uhGmLDEIqvwTTRrVr koWegHJ6SjGhg333Fghqv3KunQ== X-Google-Smtp-Source: ADUXVKIvxkUAbPYNQiLasWlRYeVeF+aWCzeVPfSoaKmgthCrLsGY6/WnooOWWG2jYfG3yp/QjlnTUQ== X-Received: by 2002:aca:2c15:: with SMTP id s21-v6mr7225118ois.245.1527878610059; Fri, 01 Jun 2018 11:43:30 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id e202-v6sm24254363oih.2.2018.06.01.11.43.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Jun 2018 11:43:28 -0700 (PDT) Subject: Re: Whither 1:1? To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <520db496-8a7d-3c64-0d1e-739f35b312a1@gmail.com> Date: Fri, 1 Jun 2018 13:43:27 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------417E4C65B0651224C1C6A0D4" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------417E4C65B0651224C1C6A0D4 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 06/01/2018 12:25 PM, Guyren Howe wrote: > On Jun 1, 2018, at 10:16 , Olivier Gautherot > wrote: >> >> You will get a benefit in terms of space only if the optional fields in >> the second table exist in a reduced number of instances - and the second >> table is significantly wider. This can make a difference on big tables >> but this gain may be offset by the cost of the join. In this perspective, >> I don’t think that there is a clear benefit or drawback: it should be >> evaluated on a case-by-case basis. > > It seems to me that people take time to *catch up with modern hardware > reality. SSDs reduce seek time to virtually zero.* Surely, joins are now > much, much cheaper. If so, I’m inclined to describe wide tables as a > premature optimization. Sure, SSDs are uber-wonderful, but a rack full of rotating media is still going to be a lot cheaper and have a lot more capacity than a rack full of SSDs, and that makes all the difference... -- Angular momentum makes the world go 'round. --------------417E4C65B0651224C1C6A0D4 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 06/01/2018 12:25 PM, Guyren Howe wrote:
On Jun 1, 2018, at 10:16 , Olivier Gautherot <olivier@gautherot.net> wrote:

You will get a benefit in terms of space only if the optional fields in the second table exist in a reduced number of instances - and the second table is significantly wider. This can make a difference on big tables but this gain may be offset by the cost of the join. In this perspective, I don’t think that there is a clear benefit or drawback: it should be evaluated on a case-by-case basis.

It seems to me that people take time to catch up with modern hardware reality. SSDs reduce seek time to virtually zero. Surely, joins are now much, much cheaper. If so, I’m inclined to describe wide tables as a premature optimization.

Sure, SSDs are uber-wonderful, but a rack full of rotating media is still going to be a lot cheaper and have a lot more capacity than a rack full of SSDs, and that makes all the difference...

--
Angular momentum makes the world go 'round.
--------------417E4C65B0651224C1C6A0D4--