Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: preloading indexes - Mailing list pgsql-performance

From Tom Lane
Subject Re: preloading indexes
Date
Msg-id [email protected]
Whole thread Raw
In response to preloading indexes  (<[email protected]>)
List pgsql-performance
<[email protected]> writes:
> I am working with some pretty convoluted queries that work very slowly the
> first time they're called but perform fine on the second call. I am fairly
> certain that these differences are due to the caching. Can someone point me
> in a direction that would allow me to pre-cache the critical indexes?

Buy more RAM.  Also check your shared_buffers setting (but realize that
more is not necessarily better).

            regards, tom lane

pgsql-performance by date:

Previous
From: Pierre-Frédéric Caillaud
Date:
Subject: Re: preloading indexes
Next
From: Tom Lane
Date:
Subject: Re: vacuum analyze slows sql query