Re: Performance Optimization for Dummies 2 - the SQL

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: "Carlo Stonebanks" <stonec(dot)register(at)sympatico(dot)ca>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Performance Optimization for Dummies 2 - the SQL
Date: 2006-10-03 19:21:06
Message-ID: b42b73150610031221y4955e663ped999a83a810d318@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 10/3/06, Carlo Stonebanks <stonec(dot)register(at)sympatico(dot)ca> wrote:
> Please ignore sample 1 - now that I have the logging feature, I can see that
> my query generator algorithm made an error.

can you do explain analyze on the two select queries on either side of
the union separatly? the subquery is correctly written and unlikely
to be a problem (in fact, good style imo). so lets have a look at
both sides of facil query and see where the problem is.

merlin

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Graham Davis 2006-10-03 20:32:24 Re: BUG #2658: Query not using index
Previous Message Chris Browne 2006-10-03 19:18:36 Re: BUG #2658: Query not using index