Re: [GENERAL] Very slow inner join query Unacceptable latency. - Mailing list pgsql-performance

From Scott Marlowe
Subject Re: [GENERAL] Very slow inner join query Unacceptable latency.
Date
Msg-id CAOR=d=2i4oJmqoQ4h9NVoTocqfX7uVf1aCZ=SHRr0XMH9uR8cg@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] Very slow inner join query Unacceptable latency.  (<fburgess@radiantblue.com>)
List pgsql-performance
On Fri, May 24, 2013 at 3:44 PM,  <fburgess@radiantblue.com> wrote:

> Total runtime: 1606.728 ms 1.6 seconds <- very good response time
> improvement
>
> (7 rows)
>
> Questions:
>
> Any concerns with setting these conf variables you recommended; work_mem,
> random_page_cost dbserver wide (in postgresql,conf)?
>
> Thanks so much!!!

Yes 500MB is pretty high especially if you have a lot of connections.
Try it with it back down to 16MB and see how it does.  Work mem is per
sort so a setting as high as 500MB can exhaust memory on the machine
under heavy load.

--
To understand recursion, one must first understand recursion.


pgsql-performance by date:

Previous
From:
Date:
Subject: Re: [GENERAL] Very slow inner join query Unacceptable latency.
Next
From: aup20
Date:
Subject: Reporting query failing