Skip site navigation (1) Skip section navigation (2)

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 (view raw, whole thread or download thread mbox)
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

pgsql-performance by date

Next:From: John A MeinelDate: 2005-05-10 14:28:54
Subject: Re: full outer performance problem
Previous:From: Tom LaneDate: 2005-05-10 14:16:20
Subject: Re: Prefetch

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group