pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: AJ Weber <aweber@comcast.net>
To: Matheus de Oliveira <matioli.matheus@gmail.com>
Cc: Shaun Thomas <sthomas@optionshouse.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: how to improve perf of 131MM row table?
Date: Thu, 26 Jun 2014 10:07:45 -0400
Message-ID: <53AC2931.40003@comcast.net> (raw)
In-Reply-To: <CAJghg4Jd285HNma1tqFB26iJQw+GBug4VgnopA1E=YY4OMOWQw@mail.gmail.com>
References: <53AB2CB1.8080201@comcast.net>
	<53AB35CC.10202@optionshouse.com>
	<1801a5d4-c3f1-4c0c-9c2c-ffb9d7f723a3@email.android.com>
	<53AB4551.4070207@optionshouse.com>
	<53AC1F6E.4000700@comcast.net>
	<CAJghg4Jd285HNma1tqFB26iJQw+GBug4VgnopA1E=YY4OMOWQw@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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@comcast.net 
> <mailto: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 <http://www.dextra.com.br/postgres/;
>

view thread (25+ messages)  latest in thread

Message-ID: <53AC2931.40003@comcast.net>
Permalink:  ../53AC2931.40003@comcast.net/
Also on:    postgresql.org/message-id/53AC2931.40003@comcast.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: aweber@comcast.net, matioli.matheus@gmail.com, sthomas@optionshouse.com
  Subject: Re: how to improve perf of 131MM row table?
  In-Reply-To: <53AC2931.40003@comcast.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox