From: | Josh Berkus <josh(at)agliodbs(dot)com> |
---|---|
To: | "Alexander Priem" <ap(at)cict(dot)nl>, <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: Many fields in one table or many tables? |
Date: | 2003-09-18 17:27:12 |
Message-ID: | 200309181027.12195.josh@agliodbs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Alexander,
> 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.
<snip>
> Do any of you know if and how PostgreSQL would prefer one approach over the
> other?
Queston 1: Do all products have all of these properties, or do some/many/most
not have some properties? If the answer is the former, then a single table,
however broad, is the logical construct. If the latter, than several tables
makes more sense: why create NULL columns for stuff you could just leave out?
Question 2: Is it true that some properties will be updated *much* (100x) more
frequently than others? If so, it would make sense from a
performance/postgresql standpoint to isolate those properties to related
table(s). Keep in mind that this recommendation is strictly performance
related, and is not necessarily the best relational design.
Suggestion 3: There was an issue in 7.3 with table rows which are overly broad
-- some problems with PSQL, I believe. It would be worth searching for, as
I cannot remember what the limit is where problems occurred.
--
Josh Berkus
Aglio Database Solutions
San Francisco
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2003-09-18 17:30:38 | Re: Is there a reason _not_ to vacuum continuously? |
Previous Message | Tom Lane | 2003-09-18 16:16:10 | Re: [PERFORM] How to force an Index ? |