Index choice

From: Sean Davis <sdavis2(at)mail(dot)nih(dot)gov>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Index choice
Date: 2005-08-11 12:26:02
Message-ID: BF20BC1A.C2F6%sdavis2@mail.nih.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I have a fairly basic question: what is the best choice of indices for a
table? In practice, I have a table with 20+ million rows and about 25
columns. Some are very fine-grained (integers on the order of 10^8 for a
range) and some are much less (6 values over the 20M rows). Are there
general rules for what and in what combinations to index (besides index
columns that are going to be looked up often)? Any good links?

Thanks and sorry for the vague, ill-formed questions.

Sean

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Sivakumar K 2005-08-11 12:46:19 Re: postgresql with ssl on windows
Previous Message Alexander Kotelnikov 2005-08-11 12:03:45 Re: Transaction blocks