Re: Whither 1:1?

Поиск
Список
Период
Сортировка
От Ron
Тема Re: Whither 1:1?
Дата
Msg-id 520db496-8a7d-3c64-0d1e-739f35b312a1@gmail.com
обсуждение исходный текст
Ответ на Re: Whither 1:1?  (Guyren Howe <guyren@gmail.com>)
Список pgsql-general
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.

В списке pgsql-general по дате отправления:

Предыдущее
От: Olivier Gautherot
Дата:
Сообщение: Re: Whither 1:1?
Следующее
От: Justin Pryzby
Дата:
Сообщение: notes from transition to relkind='p'