Re: postgres 7.4 at 100%

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Chris Cheston <ccheston(at)gmail(dot)com>
Cc: "Gavin M(dot) Roy" <gmr(at)ehpg(dot)net>, pgsql-performance(at)postgresql(dot)org
Subject: Re: postgres 7.4 at 100%
Date: 2004-06-30 07:30:52
Message-ID: 40E26C2C.9080601@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


> Why would I or would I not create multiple indexes in a table? I
> created another index in the same table an it's improved performance
> even more.

You create indexes when you need indexes. Indexes are most helpful when
they match the WHERE clause of your selects.

So, if you commonly do one query that selects on one column, and another
query that selects on two other columns - then create one index on the
first column and another index over the second two columns.

Chris

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Chris Cheston 2004-06-30 07:34:52 Re: postgres 7.4 at 100%
Previous Message Chris Cheston 2004-06-30 07:19:04 Re: postgres 7.4 at 100%