pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: R D <mrk279@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: Indexes & Cluster - more information.
Date: Mon, 5 Feb 2001 04:42:34 -0800 (PST)
Message-ID: <20010205124234.86681.qmail@web10008.mail.yahoo.com> (raw)

Hi guys, 
I would like to know somethimg more specific for
indexes and clusters as far as I do not know very much
of R-TREES.

I have this situation:

create table gsc_act(
       reg_id int2,
       id int2,
       ra int4, 
       de int4,
       mag int2
);

This is a huge table approx 2GB containig data for
about 25 milion stars on the sky. On insertion table
was sorted by "de";

I created two indexes:

create index gsc_rdm on gsc_act(ra,de,mag); 
create index gsc_dm on gsc_act(de,mag);

queryes using this indexes worked fine. But i decided
to make:
cluster gsc_rdm on gsc_act;

The result was Extremely fast queryes using gsc_rdm
index and gsc_dm index dissapeared. I recreated it but
it was very slow.

 So will it be better to create the first index this
way (and is there any difference) as far as the table
is sorted by "de" on inserion:

create index gsc_dmr on gsc_act(de,mag,ra); 
or
create index gsc_drm on gsc_act(de,ra,mag);

Where can i read more about how exactly indexes are
created (programmers point of view) online?
Thanks in advance! Waiting for your help!

regards,
Rumen

__________________________________________________
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



Message-ID: <20010205124234.86681.qmail@web10008.mail.yahoo.com>
Permalink:  ../20010205124234.86681.qmail@web10008.mail.yahoo.com/
Also on:    postgresql.org/message-id/20010205124234.86681.qmail@web10008.mail.yahoo.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-admin@postgresql.org
  Cc: mrk279@yahoo.com
  Subject: Re: Indexes & Cluster - more information.
  In-Reply-To: <20010205124234.86681.qmail@web10008.mail.yahoo.com>
  References: <20010205124234.86681.qmail@web10008.mail.yahoo.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