Re: The REAL cost of joins

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: The REAL cost of joins
Дата
Msg-id 4B8F9E19.2000408@postnewspapers.com.au
обсуждение исходный текст
Ответ на Re: The REAL cost of joins  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
On 4/03/2010 4:47 PM, Richard Huxton wrote:
> On 03/03/10 21:59, Marcin Krol wrote:
>> What do you think of this? And in general: when (if?) should one
>> denormalize data?
>
> As a last resort. No sooner.
>
> The support costs of denormalising your database is such that if you can
> reasonably just buy more hardware / add caching / etc, do so.

Well, materialized views are a denormalization of sorts, and a really
useful one - but they're not the authorative store of the data.

Things like views, materialized views, trigger-maintained side tables
etc are what you should look at before even considering denormalizing
your main data storage.

--
Craig Ringer

В списке pgsql-general по дате отправления:

Предыдущее
От: John Moran
Дата:
Сообщение: Re: Larger volumes of chronologically ordered data and the planner
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Failed to run initdb: 128