pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Glaesemann <grzm@seespotcode.net>
To: operationsengineer1@yahoo.com
Cc: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re: SQL Technique Question
Date: Fri, 16 Jun 2006 07:34:11 +0900
Message-ID: <E3A6EDE7-520B-4B19-B688-2F489EA6F0B0@seespotcode.net> (raw)
In-Reply-To: <20060615221553.74364.qmail@web33302.mail.mud.yahoo.com>
References: <20060615221553.74364.qmail@web33302.mail.mud.yahoo.com>

[Please quote responsibly. There was no need to quote my entire  
message back to the list.]

On Jun 16, 2006, at 7:15 , <operationsengineer1@yahoo.com> wrote:

> i need to become mor familiar with views.  if i use
> views, will i substantially impair performance?

Short answer: maybe, maybe not

Long answer: benchmark and compare. EXPLAIN ANALYZE is your friend.  
For example, compare the EXPLAIN ANALYZE output using the view and  
using the whole, explicit query. You'll learn a lot that will only  
help you write better queries.

Michael Glaesemann
grzm seespotcode net






view thread (7+ messages)

Message-ID: <E3A6EDE7-520B-4B19-B688-2F489EA6F0B0@seespotcode.net>
Permalink:  ../E3A6EDE7-520B-4B19-B688-2F489EA6F0B0@seespotcode.net/
Also on:    postgresql.org/message-id/E3A6EDE7-520B-4B19-B688-2F489EA6F0B0@seespotcode.net

 · 

reply

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-sql@postgresql.org
  Cc: grzm@seespotcode.net, operationsengineer1@yahoo.com
  Subject: Re: SQL Technique Question
  In-Reply-To: <E3A6EDE7-520B-4B19-B688-2F489EA6F0B0@seespotcode.net>

* 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