Skip site navigation (1) Skip section navigation (2)

Re: Join Query Perfomance Issue

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Thomas Zaksek" <zaksek(at)ptt(dot)uni-due(dot)de>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Join Query Perfomance Issue
Date: 2008-02-13 21:36:07
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
On Feb 12, 2008 4:11 AM, Thomas Zaksek <zaksek(at)ptt(dot)uni-due(dot)de> wrote:

> I tried turning off nestloop, but with terrible results:

Yeah, it didn't help.  I was expecting the query planner to switch to
a more efficient join plan.

> I also tried to increase work_men, now the config is
> work_mem = 4MB

Try setting it higher for JUST THIS query.  i.e.

set work_mem=128M;
explain analyze select ....

and see how that runs.  Then play with it til you've got it down to
what helps.  Note that work_mem in postgresql.conf being too large can
be dangerous, so it might be something you set for just this query for
safety reasons.

In response to


pgsql-performance by date

Next:From: Arjen van der MeijdenDate: 2008-02-13 22:20:57
Subject: Re: Anyone using a SAN?
Previous:From: Tobias BroxDate: 2008-02-13 21:06:55
Subject: Re: Anyone using a SAN?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group