Re: Prefetch

From: Rod Taylor <pg(at)rbt(dot)ca>
To: molson(at)oceanconsulting(dot)com
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Prefetch
Date: 2005-05-10 14:17:59
Message-ID: 1115734679.6888.63.camel@home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

> I've done other things that make sense, like using indexes, playing with the
> planner constants and turning up the postgres cache buffers.

After you load the new days data try running CLUSTER on the structure
using a key of (stockID, date) -- probably your primary key.

This should significantly reduce the amount of IO required for your
calculations involving a few stocks over a period of time.

--

In response to

  • Prefetch at 2005-05-10 13:52:51 from Matt Olson

Browse pgsql-performance by date

  From Date Subject
Next Message John A Meinel 2005-05-10 14:28:54 Re: full outer performance problem
Previous Message Tom Lane 2005-05-10 14:16:20 Re: Prefetch