Re: index does not improve performance

From: Milos Prudek <milos(dot)prudek(at)tiscali(dot)cz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: index does not improve performance
Date: 2002-02-02 15:02:53
Message-ID: 3C5BFF9D.884C72D8@tiscali.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> BTW, have you VACUUM ANALYZE'd this table? What version of Pg are you

On your advice I did VACUUM ANALYZE, and it did help! From 5.5 seconds
I'm down to 3.4 seconds.

I'm using PostgreSQL 7.1.3, RPM binary.

> running? The output for 'explain' for these queries (with and without
> index) would be helpful.

With index:
Aggregate (cost=11292.20..11292.20 rows=1 width=0)
-> Seq Scan on log (cost=0.00..10679.25 rows=245182 width=0)

Without index:
Aggregate (cost=11292.20..11292.20 rows=1 width=0)
-> Seq Scan on log (cost=0.00..10679.25 rows=245182 width=0)

--
Milos Prudek

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Cees van de Griend 2002-02-02 16:56:17 Preformance
Previous Message Milos Prudek 2002-02-02 14:44:10 Re: index does not improve performance