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

From Greg Stark
Subject Re: same question little different test MSSQL vrs Postgres
Date
Msg-id 873bwo17st.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: same question little different test MSSQL vrs Postgres  ("Joel Fradkin" <jfradkin@wazagua.com>)
List pgsql-sql
"Joel Fradkin" <jfradkin@wazagua.com> writes:

> 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"

Well that says it only took 1s. So it seems this is highly dependent on
whether the data is in cache. Perhaps it was in cache on MSSQL when you
profiled it there and not on postgres?

You could put an index on clientnum, but if the data is usually in cache like
this it might not even be necessary.

-- 
greg



pgsql-sql by date:

Previous
From: "Joel Fradkin"
Date:
Subject: Re: same question little different test MSSQL vrs Postgres
Next
From: Richard Huxton
Date:
Subject: Re: same question little different test MSSQL vrs Postgres