Re: Materialized view vs. view

From: Melvin Davidson <melvin6925(at)gmail(dot)com>
To: Kevin Grittner <kgrittn(at)gmail(dot)com>
Cc: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, Job <Job(at)colliniconsulting(dot)it>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Materialized view vs. view
Date: 2017-01-10 19:36:32
Message-ID: CANu8FixGyfxAdQJZiFHnmE9+=dqjcxPpCXKbk-KGOfrmoWijGQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Jan 10, 2017 at 2:31 PM, Kevin Grittner <kgrittn(at)gmail(dot)com> wrote:

> On Tue, Jan 10, 2017 at 12:44 PM, Melvin Davidson <melvin6925(at)gmail(dot)com>
> wrote:
>
> > fyi, a view is nothing more than just that, a view.
> > A materialized view, afaic, is a misleading name, it is actually
> > a valid table and you can create indexes on them,
>
> I disagree with the notion that defining a relation in terms of a
> query (like a view) and materializing the results (like a table)
> makes "materialized view" a misleading name. I don't think I can
> say it better than others already have, so I recommend reading the
> first three paragraphs of the "Introduction" section of this paper:
>
> http://homepages.inf.ed.ac.uk/wenfei/qsx/reading/gupta95maintenance.pdf
> Ashish Gupta and Inderpal Singh Mumick.
> Maintenance of Materialized Views: Problems, Techniques, and Applications.
>
> > so theoretically you should be able to reduce response time on
> > them.
>
> As the above-referenced text suggests, a materialized view is
> essentially a cache of the results of the specified query. While,
> in rare cases, this may be captured to provide the query results as
> of some particular moment in time, the overwhelming reason for
> creating a materialized view is to improve performance over a
> non-materialized view.
>
> --
> Kevin Grittner
> EDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
>
>I disagree with the notion that defining a relation in terms of a
>query (like a view) and materializing the results (like a table)
>makes "materialized view" a misleading name.

*IMHO, I disagree. I feel a better name would be "materialized table". *
*However, it is too late to change that now. Just my personal opinion.*
--
*Melvin Davidson*
I reserve the right to fantasize. Whether or not you
wish to share my fantasy is entirely up to you.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2017-01-10 19:52:53 Re: Materialized view vs. view
Previous Message Kevin Grittner 2017-01-10 19:31:09 Re: Materialized view vs. view