Re: what's the slowest part in the SQL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Suya Huang <shuang(at)connexity(dot)com>
Cc: Claudio Freire <klaussfreire(at)gmail(dot)com>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: what's the slowest part in the SQL
Date: 2016-08-10 01:57:45
Message-ID: 14676.1470794265@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Suya Huang <shuang(at)connexity(dot)com> writes:
> Thank you Tom very much, thats 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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Suya Huang 2016-08-10 02:02:10 Re: what's the slowest part in the SQL
Previous Message Suya Huang 2016-08-10 01:46:30 Re: what's the slowest part in the SQL