From: Amit V Shah <ashah@tagaudit.com>
To: 'pgsql-performance@postgresql.org' <pgsql-performance@postgresql.org>
Subject: Do Views execute underlying query everytime ??
Date: Tue, 21 Jun 2005 10:01:21 -0400
Message-ID: <0C072E7CC947D511AC9600A0CC7341200256CF51@vpn.tagaudit.com> (raw)
Hi all,
I have like a repository table with is very very huge with atleast a few
hundreds of millions, may be over that. The information is stored in form of
rows in these tables. I need to make that information wide based on some
grouping and display them as columns on the screen.
I am thinking of having a solution where I create views for each screen,
which are just read only.
However, I donot know if the query that creates the view is executed
everytime I select something from the view. Because if that is the case,
then I think my queries will again be slow. But if that is the way views
work, then what would be the point in creating them ..
Any suggestions, helps --
(Please pardon if this question should not be on performance forum)
Thanks,
Amit
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: ashah@tagaudit.com
Subject: Re: Do Views execute underlying query everytime ??
In-Reply-To: <0C072E7CC947D511AC9600A0CC7341200256CF51@vpn.tagaudit.com>
References: <0C072E7CC947D511AC9600A0CC7341200256CF51@vpn.tagaudit.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox