pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Suya Huang <shuang@connexity.com>
Cc: Claudio Freire <klaussfreire@gmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: what's the slowest part in the SQL
Date: Tue, 09 Aug 2016 21:57:45 -0400
Message-ID: <14676.1470794265@sss.pgh.pa.us> (raw)
In-Reply-To: <F3D95614-5720-4E17-88B0-29F81A3BA7CA@connexity.com>
References: <1D0FF65A-EAB9-453C-9B95-684E05B494B7@connexity.com>
	<CAGTBQpYz8mFz9kie740ayGysfST35s3zAvpL-wrM8UNtCT22mA@mail.gmail.com>
	<001EBA46-372C-4325-9AC5-168E19949C8A@connexity.com>
	<CAGTBQpZfyj9252RYGY7+EL540mXxd4dRTRGZtQWYFJm63Byj2Q@mail.gmail.com>
	<F21B81F4-E136-4F46-AD90-310BF8C257A1@connexity.com>
	<12338.1470789923@sss.pgh.pa.us>
	<F3D95614-5720-4E17-88B0-29F81A3BA7CA@connexity.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Suya Huang <shuang@connexity.com> writes:
> Thank you Tom very much, that’s the piece of information I miss. 
> So, should I expect that the nested loop join would be much faster if I cache both tables (use pg_prewarm) into memory as it waives the disk read?

pg_prewarm is not going to magically fix things if your table is bigger
than RAM, which it apparently is.

			regards, tom lane


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (14+ messages)  latest in thread

Message-ID: <14676.1470794265@sss.pgh.pa.us>
Permalink:  ../14676.1470794265@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14676.1470794265@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, shuang@connexity.com, klaussfreire@gmail.com
  Subject: Re: what's the slowest part in the SQL
  In-Reply-To: <14676.1470794265@sss.pgh.pa.us>

* 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