Re: View performance question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Josh Berkus" <josh(at)agliodbs(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: View performance question
Date: 2001-06-22 21:11:31
Message-ID: 5809.993244291@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Josh Berkus" <josh(at)agliodbs(dot)com> writes:
> I tried re-arranging the JOINS as you suggested. There was no impact on
> gross performance (still 42 seconds to return the first row). And yes,
> it is the classic "star" database.

> What follows is the query plan.

Hm. The query plan looks very reasonable: hashing the smaller tables is
exactly what I'd think it should do. If the rows estimates shown in the
plan are accurate, it's hard to see how it's spending 42 seconds on
this.

The primary tables seem to be big enough that they are probably being
divided into hash batches, if you use the default sort_mem setting of
512K. Try increasing sort_mem (SET SORT_MEM TO 5000 or so) and see if
that makes a difference.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jackie Siu 2001-06-23 03:31:37 day difference
Previous Message J.Fernando Moyano 2001-06-22 21:10:39 cache lookup failed ???? What is it ???!!!