pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guyren Howe <guyren@gmail.com>
To: Olivier Gautherot <olivier@gautherot.net>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Whither 1:1?
Date: Fri, 1 Jun 2018 10:25:40 -0700
Message-ID: <C79FDC97-869F-422D-8336-3A3BD81B8994@gmail.com> (raw)
In-Reply-To: <CAJ7S9TXtVXxUHwWd0SEzjfUXbYzJObxren0LuoN+LXd2SBMQRA@mail.gmail.com>
References: <EB970076-1B97-43F4-9E5A-A73C6DFFB161@gmail.com>
	<CAJ7S9TXtVXxUHwWd0SEzjfUXbYzJObxren0LuoN+LXd2SBMQRA@mail.gmail.com>

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.

view thread (10+ messages)  latest in thread

Message-ID: <C79FDC97-869F-422D-8336-3A3BD81B8994@gmail.com>
Permalink:  ../C79FDC97-869F-422D-8336-3A3BD81B8994@gmail.com/
Also on:    postgresql.org/message-id/C79FDC97-869F-422D-8336-3A3BD81B8994@gmail.com

 · 

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, olivier@gautherot.net
  Subject: Re: Whither 1:1?
  In-Reply-To: <C79FDC97-869F-422D-8336-3A3BD81B8994@gmail.com>
  References: <EB970076-1B97-43F4-9E5A-A73C6DFFB161@gmail.com> <CAJ7S9TXtVXxUHwWd0SEzjfUXbYzJObxren0LuoN+LXd2SBMQRA@mail.gmail.com> <C79FDC97-869F-422D-8336-3A3BD81B8994@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