From: Andrew Sullivan <andrew@libertyrms.info>
To: pgsql-performance@postgresql.org
Subject: Re: Table Relationships
Date: Fri, 30 May 2003 14:18:54 -0400
Message-ID: <20030530181854.GA19077@libertyrms.info> (raw)
In-Reply-To: <Pine.LNX.4.33.0305301118070.31612-100000@css120.ihs.com>
References: <200305301003.19829.josh@agliodbs.com>
<Pine.LNX.4.33.0305301118070.31612-100000@css120.ihs.com>
On Fri, May 30, 2003 at 11:20:33AM -0600, scott.marlowe wrote:
> but denormalizing for storage is usually a bad idea, as it allows your
> data to get filled with inconsistencies.
Sure, but if performance is an important goal for certain kinds of
SELECTs, using a trigger at insert or update to do denormalising is
perhaps an acceptable approach. It's obvious that in most cases,
denormalising instead of optimising your normalisation is silly. But
if you need something to return in, say, 2ms most of the time, and it
requires a wide variety of data, denormalising is a good idea.
It is, of course, contrary to the RDBMS-y mind to denormalise. But
there are (rare) times when it's a good idea, and I hate to see it
rejected out of hand in such cases.
A
--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
<andrew@libertyrms.info> M2P 2A8
+1 416 646 3304 x110
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: andrew@libertyrms.info
Subject: Re: Table Relationships
In-Reply-To: <20030530181854.GA19077@libertyrms.info>
References: <200305301003.19829.josh@agliodbs.com> <Pine.LNX.4.33.0305301118070.31612-100000@css120.ihs.com> <20030530181854.GA19077@libertyrms.info>
* 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