Re: Table Relationships - Mailing list pgsql-performance

From Andrew Sullivan
Subject Re: Table Relationships
Date
Msg-id 20030530181854.GA19077@libertyrms.info
Whole thread Raw
In response to Re: Table Relationships  ("scott.marlowe" <scott.marlowe@ihs.com>)
Responses Re: Table Relationships  (Josh Berkus <josh@agliodbs.com>)
List pgsql-performance
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


pgsql-performance by date:

Previous
From: "Roman Fail"
Date:
Subject: Re: Hardware advice
Next
From: Will LaShell
Date:
Subject: Re: Hardware advice