pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Silke Trissl <trissl@informatik.hu-berlin.de>
Cc: pgsql-performance@postgresql.org
Subject: Re: Join problem
Date: Wed, 28 Apr 2004 08:52:20 -0400
Message-ID: <27627.1083156740@sss.pgh.pa.us> (raw)
In-Reply-To: <408E9934.8060509@informatik.hu-berlin.de>
References: <408E9934.8060509@informatik.hu-berlin.de>

Silke Trissl <trissl@informatik.hu-berlin.de> writes:
> I found out, that the change of the operator from '~*' to '=' for the 
> item.description brought a great boost in performance (425 secs to 1 
> sec!), but not in cost (Query plans at the end).

The main problem seems to be bad estimation of the number of rows
extracted from the item table.  Have you ANALYZEd that table lately?

			regards, tom lane



view thread (3+ messages)

Message-ID: <27627.1083156740@sss.pgh.pa.us>
Permalink:  ../27627.1083156740@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27627.1083156740@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, trissl@informatik.hu-berlin.de
  Subject: Re: Join problem
  In-Reply-To: <27627.1083156740@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