Re: Help: how to speed up query after db server reboot

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Wei Yan <weiyan1(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Help: how to speed up query after db server reboot
Date: 2009-09-03 07:51:49
Message-ID: 9837222c0909030051t1663ac8et2b739b5f805de382@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Wed, Sep 2, 2009 at 00:01, Wei Yan<weiyan1(at)gmail(dot)com> wrote:
> Hi:
>
> Looks like after postgres db server reboot, first query is very slow
> (10+mins). After the system cache built, query is pretty fast.
> Now the question is how to speed up the first query slow issue?
>
> Any pointers?

Schedule a run of a couple of representative queries right as the
database has started? That should pre-populate the cache before your
users get there, hopefully.

--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Joshua Tolley 2009-09-03 13:05:46 Re: pg_stat_activity.current_query explanation?
Previous Message Scott Otis 2009-09-02 20:44:42 Seeking performance advice and explanation for high I/O on 8.3