Re: [OT] "advanced" database design (long)

Поиск
Список
Период
Сортировка
Искать
От
Gregory Stark
Тема
Re: [OT] "advanced" database design (long)
Дата
Msg-id
87ve54hpcm.fsf@oxford.xeocode.com
Ответ на
Список
Дерево обсуждения
Re: "advanced" database design (long) SunWuKung <Balazs.Klein@t-online.hu>
Re: "advanced" database design (long) "Masse Jacques" <jacques.masse@bordeaux.cemagref.fr>
Re: "advanced" database design (long) Lew <lew@lwsc.ehost-services.com>
Re: "advanced" database design (long) Jeff Davis <pgsql@j-davis.com>

"Scott Marlowe"  writes:

> On Feb 3, 2008 10:14 PM, Alex Turner  wrote:
>
>> give you a lot less  pages to load than building a table with say 90 columns
>> in it that are all null, which would result in better rather than worse
>> performance?

Fwiw Postgres stores NULLs quite efficiently. Those 90 columns, all of which
are null would take 12 bytes.

> But you're giving us a choice between two bad methodologies.

But I probably agree with Scott. It depends though. There are cases which are
inherently awkward for which you will end up with either EAV or 90 mostly NULL
columns.

-- 
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com
  Ask me about EnterpriseDB's Slony Replication support!
В списке pgsql-general по дате отправления
От: Csaba Nagy
Дата:
Сообщение: Re: PostgreSQL Certification
От: Thomas Pundt
Дата:
FAQ