Re: Desperate: View not using indexes (very slow)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jen Sale <js(at)slipt(dot)net>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Desperate: View not using indexes (very slow)
Date: 2006-01-30 03:50:58
Message-ID: 25261.1138593058@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Jen Sale <js(at)slipt(dot)net> writes:
> can someone please tell me what we did wrong?

Joins against union subqueries aren't handled very well at the moment.
(As it happens, I'm working on that exact problem right now for 8.2,
but that won't help you today.)

The plan indicates that you are using UNION rather than UNION ALL,
which is not helping any. Do you really need duplicate elimination
in that view?

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Charles Sprickman 2006-01-30 05:35:12 Re: Huge Data sets, simple queries
Previous Message Craig A. James 2006-01-30 03:19:46 Re: Huge Data sets, simple queries