View Vs. Table

From: "Radhika Sambamurti" <sushi(at)88thstreet(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: View Vs. Table
Date: 2007-03-06 14:32:19
Message-ID: 13619.63.118.86.10.1173191539.squirrel@www.88thstreet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

I have two tables which currently are being aggregated into a third table.
I am proposing eliminating or drastically shortening the 3rd aggregation
table, and instead just using a View.

Which brings me to the question, which is better? Reading from a table or
a view or is there a difference in performance?

From the application's perspective the View is much better as data is
being stored in one place, reducing errors and also storage.
But from the db point of view, is there a bigger performace hit when I
query a view Vs a table or is there no difference.

Thanks,
Radhika

--
It is all a matter of perspective. You choose your view by choosing where
to stand.
Larry Wall
---

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bart Degryse 2007-03-06 14:38:34 Re: convert to a string
Previous Message Shavonne Marietta Wijesinghe 2007-03-06 14:32:12 Re: convert to a string