pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vadim Mikheev <vadim@krs.ru>
To: Chris Williams <chris_d_williams@itd.sterling.com>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] Which index is better for join operations
Date: Tue, 04 Aug 1998 22:16:42 +0800
Message-ID: <35C717CA.5D1395E4@krs.ru> (raw)
References: <005d01bdbfae$0eaac810$edfe04c7@itd.sterling.com>

Chris Williams wrote:
> 
> I have a SQL statement that is SLOW and I am wondering if using a hash index instead of a btree on
> the fields that are used for the join operations would be faster?  Anyone have any input on this.

No. Also, keep in mind that btree-s are more stable and hash
index creation takes more time.

Did you run vacuum? Also, it's always good to build index after
copying data to tables - it's faster and updates statistic
about relation.

> The query is between 3 tables.  If you need any more details, please let me know.

Vadim



view thread (2+ messages)

Message-ID: <35C717CA.5D1395E4@krs.ru>
Permalink:  ../35C717CA.5D1395E4@krs.ru/
Also on:    postgresql.org/message-id/35C717CA.5D1395E4@krs.ru

 · 

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: vadim@krs.ru, chris_d_williams@itd.sterling.com
  Subject: Re: [SQL] Which index is better for join operations
  In-Reply-To: <35C717CA.5D1395E4@krs.ru>
  References: <005d01bdbfae$0eaac810$edfe04c7@itd.sterling.com> <35C717CA.5D1395E4@krs.ru>

* 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