pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: pierre@desertmoon.com
To: pgsql-sql@postgreSQL.org
Subject: Cluster(ing) to help joins?
Date: 15 Oct 1998 06:53:23 -0700
Message-ID: <19981015135323.29938.qmail@desertmoon.com> (raw)

Hi there.

I'm working with a DB under 6.3.2 that has a little over 2million rows of
data spread across 8-10 tables. The question I have is when I attempt to
join more than 3 tables I get a HUGE performence hit, even if the number
of rows returned by the first set of clauses is small. 

If I perform part of the join minus a single table the performance is great.
So why is this? Can using clusters help in this kind of situation?  

I did discover that building multi-key indexes did help the performance a bit
but it is still way too slow at times.

Oh...and can someone tell me what this error message means?

ERROR:  ExecInitIndexScan: both left and right op's are rel-vars

Thanks for any and all help...

-=pierre



Message-ID: <19981015135323.29938.qmail@desertmoon.com>
Permalink:  ../19981015135323.29938.qmail@desertmoon.com/
Also on:    postgresql.org/message-id/19981015135323.29938.qmail@desertmoon.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: pierre@desertmoon.com
  Subject: Re: Cluster(ing) to help joins?
  In-Reply-To: <19981015135323.29938.qmail@desertmoon.com>
  References: <19981015135323.29938.qmail@desertmoon.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