From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: Alexander Dolgin <alex@dolgin.dp.ua>
Cc: pgsql-performance@postgresql.org
Subject: Re: 200 times slower then MSSQL??
Date: Tue, 25 Jan 2005 17:52:28 +0000
Message-ID: <41F6875C.9040804@familyhealth.com.au> (raw)
In-Reply-To: <E1Ct8wq-0008En-00@lata.dp.ua>
References: <E1Ct8wq-0008En-00@lata.dp.ua>
> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: chriskl@familyhealth.com.au, alex@dolgin.dp.ua
Subject: Re: 200 times slower then MSSQL??
In-Reply-To: <41F6875C.9040804@familyhealth.com.au>
References: <E1Ct8wq-0008En-00@lata.dp.ua> <41F6875C.9040804@familyhealth.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox