Re: Views- Advantages and Disadvantages

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: b(dot)wood(at)niwa(dot)co(dot)nz
Cc: Ashish Karalkar <ashish(dot)karalkar(at)info-spectrum(dot)com>, Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Views- Advantages and Disadvantages
Date: 2007-05-10 00:58:21
Message-ID: 46426E2D.8030706@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Brent Wood wrote:
> Ashish Karalkar wrote:
>> Thanks Brent for your replay,
>>
>>
>> What about the Disadvantages, Performance issues?
>
> As far as I'm aware, performance is the only real disadvantage.

What performance are we talking about here? Executing from a view
although has *some* overhead, I don't even know that it is worth
considering in most cases.

Joshua D. Drake

>
> I tend to break DB design into stages:
>
> ER modelling to define the entities/relationships the DB needs to
> store/represent
> Normalize this to maximise data integrity & minimise duplication/redundancy
> De-normalise to meet performance & access requirements.
>
>
> In the latter stage, views are generally used, unless there are
> performance restrictions,
> when a de-normalised schema may be applied.
>
> Cheers,
>
> Brent
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
>

--

=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive PostgreSQL solutions since 1997
http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2007-05-10 01:06:39 Re: Views- Advantages and Disadvantages
Previous Message Brent Wood 2007-05-10 00:51:18 Re: Views- Advantages and Disadvantages