Re: Perfomance of views

From: Richard Huxton <dev(at)archonet(dot)com>
To: Svenne Krap <svenne(at)krap(dot)dk>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Perfomance of views
Date: 2005-10-27 09:33:40
Message-ID: 43609EF4.8060907@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Svenne Krap wrote:
> Hi there.
>
> I am currently building a system, where it would be nice to use multiple
> levels of views upon each other (it is a staticstics system, where
> traceability is important).
>
> Is there any significant performance reduction in say 10 levels of views
> instead of one giant, nested sql-statement ? I especially think exection
> planner-wise.

The planner tries to push conditions "inside" views where it can. It's
not perfect though, and if you're writing a big query by hand you might
be able to do better than it.

In short, I'd test if you can.
--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Svenne Krap 2005-10-27 11:01:09 Re: Perfomance of views
Previous Message Jim C. Nasby 2005-10-27 03:00:13 Re: performance on query