Re: Why no performance boost although I added an index? - Mailing list pgsql-general

From Jonathan Bartlett
Subject Re: Why no performance boost although I added an index?
Date
Msg-id Pine.GSU.4.44.0304071505190.5024-100000@eskimo.com
Whole thread Raw
In response to Re: Why no performance boost although I added an index?  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Responses Re: Why no performance boost although I added an index?
List pgsql-general
> If the index scan is reading a large enough percentage of the rows (and
> depending on the clustering of values), it may be reading enough pages
> that there's no advantage (or even a disadvantage) to using the index.
> This is due to both the reads of the index itself and the fact that it'll
> often be reading the values in the main table (it still needs to get the
> commit info from the table data) in random order rather than sequential
> order which can lose some optimizations the OS often gives to sequential
> reads.

This is a really big lose if your index and table are on the same disk.

Jon

>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>


pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Why no performance boost although I added an index?
Next
From: Doug McNaught
Date:
Subject: Re: vacuum by non-owner