pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joel Fradkin <jfradkin@wazagua.com>
Cc: PostgreSQL Perform <pgsql-performance@postgresql.org>
Subject: Re: Any way to speed this up?
Date: Thu, 07 Apr 2005 12:04:34 -0400
Message-ID: <3303.1112889874@sss.pgh.pa.us> (raw)
In-Reply-To: <005301c53b84$6b83f8a0$797ba8c0@jfradkin>
References: <005301c53b84$6b83f8a0$797ba8c0@jfradkin>

"Joel Fradkin" <jfradkin@wazagua.com> writes:
> Running this explain on windows box, but production on linux both 8.0.1

Are you using any nondefault optimizer settings?  The vast bulk of the
time is going into the indexscan on tblassociate (almost 42 out of the
48 seconds), and I'm a bit surprised it didn't choose a seqscan and sort
instead.  Or even more likely, forget the merge joins altogether and use
hash joins --- the other tables are plenty small enough to fit in hash
tables.

			regards, tom lane



view thread (11+ messages)  latest in thread

Message-ID: <3303.1112889874@sss.pgh.pa.us>
Permalink:  ../3303.1112889874@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3303.1112889874@sss.pgh.pa.us

 · 

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-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jfradkin@wazagua.com
  Subject: Re: Any way to speed this up?
  In-Reply-To: <3303.1112889874@sss.pgh.pa.us>

* 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