From: Alexander Priem <ap@cict.nl>
To: pgsql-performance@postgresql.org
Subject: Many fields in one table or many tables?
Date: Thu, 18 Sep 2003 10:13:11 +0200
Message-ID: <008901c37dbc$b3615550$b696a8c0@APR> (raw)
References: <20399973.1063861169740.JavaMail.root@rowlf.psp.pas.earthlink.net>
Hi guys,
I am in the process of creating a database design in which LOTS of data need
to be modelled.
For instance, I need to store data about products. Every product has LOTS of
properties, well over a hundred.
So I'm wondering. What's the best approach here, performance wise? Just
create one Product table with well over a hundred columns? Or would it be
better to divide this over more tables and link them together via ID's? I
could for instance create tables Product, PriceInfo, Logistics, StorageInfo,
PackagingInfo and link them together via the same ID. This would be easier
to document (try to visualize a 100+ column table in a document!), but would
it impact performance? I tihnk maybe it would impact Select performance, but
Updating of products would maybe speed up a little...
All info about a product is unique for this product so records in PriceInfo,
Logistics, StorageInfo, PackagingInfo tables would map one to one to records
in the Product table.
Do any of you know if and how PostgreSQL would prefer one approach over the
other?
Thanks in advance,
Alexander Priem.
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-performance@postgresql.org
Cc: ap@cict.nl
Subject: Re: Many fields in one table or many tables?
In-Reply-To: <008901c37dbc$b3615550$b696a8c0@APR>
References: <20399973.1063861169740.JavaMail.root@rowlf.psp.pas.earthlink.net> <008901c37dbc$b3615550$b696a8c0@APR>
* 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