From: Richard Huxton <dev@archonet.com>
To: Svenne Krap <svenne@krap.dk>
Cc: pgsql-performance@postgresql.org
Subject: Re: Perfomance of views
Date: Thu, 27 Oct 2005 10:33:40 +0100
Message-ID: <43609EF4.8060907@archonet.com> (raw)
In-Reply-To: <435FA002.4060509@krap.dk>
References: <435FA002.4060509@krap.dk>
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
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-performance@postgresql.org
Cc: dev@archonet.com, svenne@krap.dk
Subject: Re: Perfomance of views
In-Reply-To: <43609EF4.8060907@archonet.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