Re: Select performance vs. mssql - Mailing list pgsql-performance

From Neil Conway
Subject Re: Select performance vs. mssql
Date
Msg-id 4292CE03.1070605@samurai.com
Whole thread Raw
In response to Re: Select performance vs. mssql  (mark durrant <markd89@yahoo.com>)
List pgsql-performance
mark durrant wrote:
> PostgreSQL Machine:
> "Aggregate  (cost=140122.56..140122.56 rows=1 width=0)
> (actual time=24516.000..24516.000 rows=1 loops=1)"
> "  ->  Index Scan using "day" on mtable
> (cost=0.00..140035.06 rows=35000 width=0) (actual
> time=47.000..21841.000 rows=1166025 loops=1)"
> "        Index Cond: ("day" = 'Mon'::bpchar)"
> "Total runtime: 24516.000 ms"

Have you run ANALYZE?

Clustering the table on the "day" index (via the CLUSTER command) would
be worth trying.

-Neil

pgsql-performance by date:

Previous
From: mark durrant
Date:
Subject: Re: Select performance vs. mssql
Next
From: "Harald Lau (Sector-X)"
Date:
Subject: Re: Select performance vs. mssql