Re: [GENERAL] indices don't make much difference

From: Elmar Haneke <elmar(at)haneke(dot)de>
To: admin <admin(at)wtbwts(dot)com>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] indices don't make much difference
Date: 1999-12-16 08:56:27
Message-ID: 3858A93B.46453120@haneke.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> I have tried creating an index for manu_base using the following commands:
> create index manu_mid_idx on "manu_base" using btree ("mid" "int2_ops");
> drop index manu_mid_idx
> create index manu_mid_idx on "manu_base" using hash ("mid" "int2_ops");
> drop index manu_mid_idx

You should also try out defining indices on prod_base.

The most efficient way for joining is an "merge join" this requires an
BTREE-index on both fields to be joined.

If EXPLAIN does not show index-usage you should do a VACUUM on both
tables to update statistics.

Elmar

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Fabian.Frederick 1999-12-16 11:05:42 RE: [GENERAL] Installation problem on Suse linux 6.3
Previous Message Pierluigi Mangani 1999-12-16 08:01:07 Recompile source RH 6.1 ?