From: Rod Taylor <pg@rbt.ca>
To: molson@oceanconsulting.com
Cc: pgsql-performance@postgresql.org
Subject: Re: Prefetch
Date: Tue, 10 May 2005 10:17:59 -0400
Message-ID: <1115734679.6888.63.camel@home> (raw)
In-Reply-To: <200505100652.51401.molson@oceanconsulting.com>
References: <200505100652.51401.molson@oceanconsulting.com>
> 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.
--
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: pg@rbt.ca, molson@oceanconsulting.com
Subject: Re: Prefetch
In-Reply-To: <1115734679.6888.63.camel@home>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox