Re: Table with 90 columns

From: "Ligia Pimentel" <pimentel_ligia(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Table with 90 columns
Date: 2002-09-11 20:55:50
Message-ID: aloeg1$1jmn$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Yes, a very wide table (many columns) will be less efficient than a table
with less columns (this is a matter of relational concepts and
normalization).

I suspect you could re-check your relational design and find many fields
that are very repetitive. If you really think you need all this columns in
the same table because of the nature of your application (which I doubt), it
will be reasonable to divide the fields in the table according to the
frecuency of use of each group of fields (a lot of fields will be almost
fixed, -not updated often- and other will be updated frequenly). Like the
parts of the record that are related to general iformation and the other
fields that are related to transactions or balances or status.

I hope this helps.

http://www.devshed.com/Server_Side/MySQL/Normal/Normal1/print_html
http://www.sqlmag.com/Articles/Index.cfm?ArticleID=4887&pg=1

Good day!

Ligia

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Davis 2002-09-11 20:56:54 Re: XML and PostgreSQL
Previous Message Francisco J Reyes 2002-09-11 20:44:25 Re: pg_dumpall between Linux and FreeBSD.