Re: The same query - much different runtimes - Mailing list pgsql-performance

From Pavan Deolasee
Subject Re: The same query - much different runtimes
Date
Msg-id CABOikdPQqi5+DgV_CGuxG91cMojQX7ZQ9sxNx7SXKSiER_EXbg@mail.gmail.com
Whole thread Raw
In response to The same query - much different runtimes  (Johann Spies <johann.spies@gmail.com>)
List pgsql-performance

On Mon, Apr 7, 2014 at 3:55 PM, Johann Spies <johann.spies@gmail.com> wrote:


I then ran the query and the result was produced in about the same time as (2945 ms).

What can cause such a huge discrepancy?  

May be when you reran the query, most of the data blocks were cached either in the shared buffers or the OS cache. That could drastically improve the performance. I can see a large number of shared buffer hits in the explain analyze output of the query ran through psql session.

Thanks,
Pavan

--
Pavan Deolasee
http://www.linkedin.com/in/pavandeolasee

pgsql-performance by date:

Previous
From: Ryan Johnson
Date:
Subject: Re: SSI slows down over time
Next
From: Cora Ma
Date:
Subject: performance degradation after launching postgres cluster using pgpool-II