Re: Prefetch - Mailing list pgsql-performance

From Rod Taylor
Subject Re: Prefetch
Date
Msg-id 1115734679.6888.63.camel@home
Whole thread Raw
In response to Prefetch  (Matt Olson <molson@oceanconsulting.com>)
List 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.

--


pgsql-performance by date:

Previous
From: "Adam Haberlach"
Date:
Subject: Re: Partitioning / Clustering
Next
From: Alex Stapleton
Date:
Subject: Re: Partitioning / Clustering