Re: index does not improve performance - Mailing list pgsql-general

From Milos Prudek
Subject Re: index does not improve performance
Date
Msg-id 3C5BFF9D.884C72D8@tiscali.cz
Whole thread Raw
In response to index does not improve performance  (Milos Prudek <milos.prudek@tiscali.cz>)
Responses Re: index does not improve performance
List 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


pgsql-general by date:

Previous
From: "The Viracocha"
Date:
Subject: Server ???
Next
From: Cees van de Griend
Date:
Subject: Preformance