Re: Custom Fields Database Architecture

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: Custom Fields Database Architecture
Дата
Msg-id 20090615150216.GC20647@fetter.org
обсуждение исходный текст
Ответ на Custom Fields Database Architecture  (Gnanam <gnanam@zoniac.com>)
Ответы Re: Custom Fields Database Architecture  (Stefan Keller <sfkeller@gmail.com>)
Re: Custom Fields Database Architecture  (Sim Zacks <sim@compulab.co.il>)
Список pgsql-general
On Mon, Jun 15, 2009 at 06:04:25AM -0700, Gnanam wrote:
>
> Hi,
>
> I'm designing a database schema in which I should allow user to create
> custom fields at the application level.

This is called EAV (Entity-Attribute-Value), and it's a
multi-decade-old mistake.  Re-think your design.

http://archives.postgresql.org/pgsql-general/2008-02/msg00075.php
http://decipherinfosys.wordpress.com/2007/01/29/name-value-pair-design/
http://en.wikipedia.org/wiki/Inner-Platform_Effect

Cheers,
David.
--
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

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

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: Rounding incompatibility
Следующее
От: David Fetter
Дата:
Сообщение: Re: horizontal sharding