From: Rod Taylor <rbt@rbt.ca>
To: Brian Tarbox <btarbox@theworld.com>
Cc: Postgresql Performance <pgsql-performance@postgresql.org>
Subject: Re: are views typically any faster/slower than equivilent joins?
Date: 01 Jun 2003 00:05:56 -0400
Message-ID: <1054440355.11968.90.camel@jester> (raw)
In-Reply-To: <001801c327e9$3c01a5b0$01000001@trouble>
References: <001801c327e9$3c01a5b0$01000001@trouble>
> Would my query performance be significantly faster/slower using a View as
> opposed to a prepared query using join?
I missed this part. Views and prepared queries are not the same time.
Use of a view still needs to be optimized.
Prepared queries will run the optimization portion on the entire query
including the view segments of it. Think of a view as a MACRO.
Depending on the context of what surrounds it, the view may be executed
very differently.
--
Rod Taylor <rbt@rbt.ca>
PGP Key: http://www.rbt.ca/rbtpub.ascAttachments:
signature.asc (application/pgp-signature, 186B) download
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: rbt@rbt.ca, btarbox@theworld.com
Subject: Re: are views typically any faster/slower than equivilent joins?
In-Reply-To: <1054440355.11968.90.camel@jester>
References: <001801c327e9$3c01a5b0$01000001@trouble> <1054440355.11968.90.camel@jester>
* 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