From: Bricklen Anderson <BAnderson@PresiNET.com>
Cc: Joel Fradkin <jfradkin@wazagua.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: MSSQL versus Postgres timing
Date: Tue, 01 Feb 2005 09:25:41 -0800
Message-ID: <41FFBB95.3090306@PresiNET.com> (raw)
In-Reply-To: <20050201170654.GA65518@winnie.fuhr.org>
References: <000001c5087e$b92ddfa0$797ba8c0@jfradkin>
<20050201170654.GA65518@winnie.fuhr.org>
Michael Fuhr wrote:
> On Tue, Feb 01, 2005 at 11:54:11AM -0500, Joel Fradkin wrote:
>
>>A table with 645,000 records for associates has view (basically select *
>>from tblassociates where clientnum = 'test')
>>
>>This is taking 13 seconds in postgres and 3 seconds in MSSQL.
>
>
> Please post the EXPLAIN ANALYZE output for the slow query, once
> with enable_seqscan on and once with it off. For example:
>
> SET enable_seqscan TO on; -- if not already on
> EXPLAIN ANALYZE SELECT * FROM tblassociates WHERE clientnum = 'test';
>
> SET enable_seqscan TO off;
> EXPLAIN ANALYZE SELECT * FROM tblassociates WHERE clientnum = 'test';
>
>
>>Be glad to provide the view and tables etc.
>
>
> Please do -- it might help us spot something that could be improved.
> What version of PostgreSQL are you using?
>
Also, is clientnum a string datatype, or are you doing implicit type conversion?
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: BAnderson@PresiNET.com, jfradkin@wazagua.com
Subject: Re: MSSQL versus Postgres timing
In-Reply-To: <41FFBB95.3090306@PresiNET.com>
* 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