pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dean Gibson (DB Administrator) <postgresql3@ultimeth.com>
To: pgsql-sql@postgresql.org
Subject: Re: JOIN performance
Date: Mon, 20 Sep 2004 21:41:40 -0700
Message-ID: <5.1.0.14.2.20040920213442.00ae4450@imaps.mailpen.net> (raw)
In-Reply-To: <25393.1095739813@sss.pgh.pa.us>
References: <5.1.0.14.2.20040920182022.00adf5e8@imaps.mailpen.net>
	<5.1.0.14.2.20040920164348.00a99868@imaps.mailpen.net>
	<5.1.0.14.2.20040920121606.00a89c68@imaps.mailpen.net>
	<414F02FF.8000603@numerixtechnology.de>
	<414F02FF.8000603@numerixtechnology.de>
	<5.1.0.14.2.20040920121606.00a89c68@imaps.mailpen.net>
	<5.1.0.14.2.20040920164348.00a99868@imaps.mailpen.net>
	<5.1.0.14.2.20040920182022.00adf5e8@imaps.mailpen.net>

It turns out that even when I removed the CASE statement from the VIEW, the 
performance problem remained.  I had to remove the conditional as well from 
the VIEW.

To refresh your memory, there was this line in the VIEW (said VIEW being 
the subject of the LEFT JOIN):

cancel_date < expire_date AS canceled,

(cancel_date & expire_date are DATEs in the base view)

When I removed the above line from the VIEW, the performance problem 
disappeared.

Do you know why?  I'm running 7.3.4, by the way.

-- Dean




view thread (12+ messages)  latest in thread

Message-ID: <5.1.0.14.2.20040920213442.00ae4450@imaps.mailpen.net>
Permalink:  ../5.1.0.14.2.20040920213442.00ae4450@imaps.mailpen.net/
Also on:    postgresql.org/message-id/5.1.0.14.2.20040920213442.00ae4450@imaps.mailpen.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: postgresql3@ultimeth.com
  Subject: Re: JOIN performance
  In-Reply-To: <5.1.0.14.2.20040920213442.00ae4450@imaps.mailpen.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