Re: how to improve perf of 131MM row table?

From: AJ Weber <aweber(at)comcast(dot)net>
To: Matheus de Oliveira <matioli(dot)matheus(at)gmail(dot)com>
Cc: Shaun Thomas <sthomas(at)optionshouse(dot)com>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: how to improve perf of 131MM row table?
Date: 2014-06-26 14:07:45
Message-ID: 53AC2931.40003@comcast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

I will try this, but can you clarify the syntax? I only know the VALUES
clause from insert statements, and it would be one set of parens like
VALUES('175769', '175771', ... )

You seem to indicate a VALUES clause that has strange parenthesis
corresponding to it.

Thank you for the feedback and offer to help!

-AJ

On 6/26/2014 9:56 AM, Matheus de Oliveira wrote:
>
> On Thu, Jun 26, 2014 at 10:26 AM, AJ Weber <aweber(at)comcast(dot)net
> <mailto:aweber(at)comcast(dot)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 <http://www.dextra.com.br/postgres/>
>

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Matheus de Oliveira 2014-06-26 14:14:27 Re: how to improve perf of 131MM row table?
Previous Message Shaun Thomas 2014-06-26 14:05:35 Re: how to improve perf of 131MM row table?