Re: Join query on 1M row table slow

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: CSN <cool_screen_name90001(at)yahoo(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Join query on 1M row table slow
Date: 2004-02-10 22:21:19
Message-ID: Pine.LNX.4.33.0402101520400.29717-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 10 Feb 2004, CSN wrote:

>
> --- "scott.marlowe" <scott(dot)marlowe(at)ihs(dot)com> wrote:
> > >What's weird is that when the same query
> > is
> > > executed again, it seems much faster - some sort
> > of
> > > caching maybe?>
> >
> > Yep. Exactly.
>
> Really? Where can I RTFM about it?

Not sure. Basically, your kernel should be caching a fair bit. See what
top says about cache and buffer size. If you've got a big enough kernel
buffer, and the table gets hit often enough, it should stay in kernel
memory.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message CSN 2004-02-10 22:37:27 Re: Join query on 1M row table slow
Previous Message Ed L. 2004-02-10 22:20:09 Re: DB cache size strategies