Re: how to improve perf of 131MM row table? - Mailing list pgsql-performance

From Matheus de Oliveira
Subject Re: how to improve perf of 131MM row table?
Date
Msg-id CAJghg4Jd285HNma1tqFB26iJQw+GBug4VgnopA1E=YY4OMOWQw@mail.gmail.com
Whole thread Raw
In response to Re: how to improve perf of 131MM row table?  (AJ Weber <aweber@comcast.net>)
Responses Re: how to improve perf of 131MM row table?
List pgsql-performance

On Thu, Jun 26, 2014 at 10:26 AM, AJ Weber <aweber@comcast.net> wrote:
OK, the sample query is attached (hopefully attachments are allowed) as "query.sql".
The "master table" definition is attached as "table1.sql".
The "detail table" definition is attached as "table2.sql".
The EXPLAIN (ANALYZE, BUFFERS) output is here: http://explain.depesz.com/s/vd5

Could you try chaning your query and sending the EXPLAIN of the following?

Instead of `node_id in ('175769', '175771', ...)` try `node_in IN (VALUES('175769'), ('175771'), ... )`.


--
Matheus de Oliveira
Analista de Banco de Dados
Dextra Sistemas - MPS.Br nível F!
www.dextra.com.br/postgres

pgsql-performance by date:

Previous
From: AJ Weber
Date:
Subject: Re: how to improve perf of 131MM row table?
Next
From: Shaun Thomas
Date:
Subject: Re: how to improve perf of 131MM row table?