Re: 200 times slower then MSSQL?? - Mailing list pgsql-performance

From Christopher Kings-Lynne
Subject Re: 200 times slower then MSSQL??
Date
Msg-id 41F6875C.9040804@familyhealth.com.au
Whole thread Raw
In response to 200 times slower then MSSQL??  ("Alexander Dolgin" <alex@dolgin.dp.ua>)
List pgsql-performance
> with about 8000 rows. For this table query:
>
> SELECT MAX(MsgSeqNum),MAX(LogTimestamp) FROM ELT_tcli_MessageLog
> WHERE LogTimestamp  >=  '0' AND IsFromCounterParty  =  'Y' AND
> IsOutOfSequence = 'N'
>      AND ConnectionName  =  'DB_BENCHMARK'
>      AND LogTimestamp IN (SELECT MAX(LogTimestamp)
>                           FROM ELT_tcli_MessageLog
>                           WHERE MsgSeqNum  >  0 AND IsFromCounterParty = 'Y'
>
>                                 AND IsOutOfSequence  =  'N' AND
> ConnectionName  =  'DB_BENCHMARK')
>
> takes about 1 second on MSSQL Server and 257 seconds on PostgreSQL one.
>
> Does anybody have idea about reasons of such results?

1. Have you run vaccum analyze recently?
2. Reply with the output of EXPLAIN ANALYZE SELECT...

Chris

pgsql-performance by date:

Previous
From: Steve Atkins
Date:
Subject: Re: PostgreSQL vs. Oracle vs. Microsoft
Next
From: Tom Lane
Date:
Subject: Re: 200 times slower then MSSQL??