agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Radhika Sambamurti <radhika@88thstreet.com>
To: pgsql-sql@postgresql.org
Subject: [Fwd: View Vs. Table]
Date: Tue, 6 Mar 2007 09:40:52 -0500 (EST)
Message-ID: <14956.63.118.86.10.1173192052.squirrel@www.88thstreet.com> (raw)

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
---


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




view thread (2+ messages)  latest in thread

Message-ID: <14956.63.118.86.10.1173192052.squirrel@www.88thstreet.com>
Permalink:  ../14956.63.118.86.10.1173192052.squirrel@www.88thstreet.com/
Also on:    postgresql.org/message-id/14956.63.118.86.10.1173192052.squirrel@www.88thstreet.com

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: radhika@88thstreet.com
  Subject: Re: [Fwd: View Vs. Table]
  In-Reply-To: <14956.63.118.86.10.1173192052.squirrel@www.88thstreet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox