Re: postgres 7.4 at 100% - Mailing list pgsql-performance

From Christopher Kings-Lynne
Subject Re: postgres 7.4 at 100%
Date
Msg-id 40E26C2C.9080601@familyhealth.com.au
Whole thread Raw
In response to Re: postgres 7.4 at 100%  (Chris Cheston <ccheston@gmail.com>)
Responses Re: postgres 7.4 at 100%
List 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

pgsql-performance by date:

Previous
From: Chris Cheston
Date:
Subject: Re: postgres 7.4 at 100%
Next
From: Chris Cheston
Date:
Subject: Re: postgres 7.4 at 100%