pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Gary Stainburn <gary.stainburn@ringways.co.uk>
Cc: pgsql-sql@postgresql.org
Subject: Re: Speed up slow select - was gone blind
Date: Fri, 01 Apr 2005 14:00:46 +0100
Message-ID: <424D45FE.3010808@archonet.com> (raw)
In-Reply-To: <200504011332.33404.gary.stainburn@ringways.co.uk>
References: <200504011332.33404.gary.stainburn@ringways.co.uk>

Gary Stainburn wrote:
> Hi folks.
> 
> I've got my select working now, but I haven't received the speed 
> increase I'd expected.  It replaced an earlier select which combined a 
> single explicit join with multiple froms.  
> 
> The first select is the old one, the second  one is the new one (with a 
> new join).  The new one takes 24 seconds to run while the old one took 
> 29.
> 
> How can I redo the select to improve the speed, or what else can I do to 
> optimaise the database?

You'll want to compare the output of EXPLAIN ANALYSE for each version. 
Post them here, or on the performance list.

Also, make sure your basic PG tuning is ok. 
http://www.powerpostgresql.com/PerfList

-- 
   Richard Huxton
   Archonet Ltd



view thread (5+ messages)  latest in thread

Message-ID: <424D45FE.3010808@archonet.com>
Permalink:  ../424D45FE.3010808@archonet.com/
Also on:    postgresql.org/message-id/424D45FE.3010808@archonet.com

 · 

reply

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-sql@postgresql.org
  Cc: dev@archonet.com, gary.stainburn@ringways.co.uk
  Subject: Re: Speed up slow select - was gone blind
  In-Reply-To: <424D45FE.3010808@archonet.com>

* 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