Re: Performance of views - Mailing list pgsql-general

From Tom Lane
Subject Re: Performance of views
Date
Msg-id 5267.1225678944@sss.pgh.pa.us
Whole thread Raw
In response to Re: Performance of views  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Responses Re: Performance of views  (Martin Gainty <mgainty@hotmail.com>)
Re: Performance of views  (Russ Brown <pickscrape@gmail.com>)
List pgsql-general
"Scott Marlowe" <scott.marlowe@gmail.com> writes:
> Note that, at least in older versions, MySQL completely materialized a
> temporary table from a view, then used that for the view.  This is
> horribly inefficient, and results in a lot of people thinking views
> are slow.  Not sure if this has been addressed in MySQL yet, don't
> really care anymore, since I rarely use mysql for anything anymore.

Some simple experiments with mysql 5.0.67 suggest that this meme is
obsolete there too.  I found some cases where it looks like we optimize
a bit better than they do, but for simple views you seem to get the
same plan as if you'd written out the equivalent query in-line.

            regards, tom lane

pgsql-general by date:

Previous
From: Sam Mason
Date:
Subject: Re: Are there plans to add data compression feature to postgresql?
Next
From: "Nikolas Everett"
Date:
Subject: Re: Performance of views