Re: same question little different test MSSQL vrs Postgres - Mailing list pgsql-sql

From Richard Huxton
Subject Re: same question little different test MSSQL vrs Postgres
Date
Msg-id 41F7A222.3040009@archonet.com
Whole thread Raw
In response to Re: same question little different test MSSQL vrs Postgres  ("Joel Fradkin" <jfradkin@wazagua.com>)
Responses Re: same question little different test MSSQL vrs Postgres  ("Joel Fradkin" <jfradkin@wazagua.com>)
List pgsql-sql
Joel Fradkin wrote:
> QUERY PLAN
> "Seq Scan on tblcase  (cost=0.00..30066.21 rows=37401 width=996) (actual
> time=0.344..962.260 rows=22636 loops=1)"
> "  Filter: ((clientnum)::text = 'SAKS'::text)"
> "Total runtime: 1034.434 ms"

That's only 1 second - to return 22,636 rows. Not 27 seconds, as in the 
original post. You'll never persuade PG to use the index when some 75% 
of your rows match the filter - it just doesn't make sense.

--  Richard Huxton  Archonet Ltd


pgsql-sql by date:

Previous
From: Richard Huxton
Date:
Subject: Re: [PERFORM] OFFSET impact on Performance???
Next
From: "Joel Fradkin"
Date:
Subject: Re: same question little different test MSSQL vrs Postgres