Re: preloading indexes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: stuff(at)opensourceonline(dot)com
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: preloading indexes
Date: 2004-11-03 19:55:17
Message-ID: 16198.1099511717@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

<stuff(at)opensourceonline(dot)com> 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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2004-11-03 20:12:57 Re: vacuum analyze slows sql query
Previous Message Pierre-Frédéric Caillaud 2004-11-03 19:50:04 Re: preloading indexes