pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
To: pgsql-performance@postgresql.org
Subject: Re: Simple queries take forever to run
Date: Thu, 28 Aug 2003 20:15:40 +0530
Message-ID: <3F4E62EC.15091.71172C@localhost> (raw)
In-Reply-To: <3F4E13CF.7080202@rentec.com>
References: <20030827182051.W85397-100000@megazone.bigpanda.com>

On 28 Aug 2003 at 10:38, Michael Guerin wrote:
> >IN(subquery) is known to run poorly in 7.3.x and earlier.  7.4 is
> >generally much better (for reasonably sized subqueries) but in earlier
> >versions you'll probably want to convert into an EXISTS or join form.
> Something else seems to be going on, even switching to an exists clause 
> gives much better but poor performance.
> count(*) where exists clause: Postgresql 19s, SQL Server <1s
> count(*) where not exists:  23.3s SQL Server 1.5s

This was with 7.4? Can you try downloading 7.4CVS and try?

> 
> SQL Server runs on a dual 1.4 with 4gigs, win2k
> Postgresql runs on a quad 900 with 8 gigs, sunos 5.8

SunOS...Not the impala out there but anyways I would refrain from slipping in 
that..

Parden me if this is a repeatation,  have you set your effective cache size?

Bye
 Shridhar

--
Nouvelle cuisine, n.:	French for "not enough food".Continental breakfast, n.:	
English for "not enough food".Tapas, n.:	Spanish for "not enough food".Dim Sum, 
n.:	Chinese for more food than you've ever seen in your entire life.




view thread (11+ messages)  latest in thread

Message-ID: <3F4E62EC.15091.71172C@localhost>
Permalink:  ../3F4E62EC.15091.71172C@localhost/
Also on:    postgresql.org/message-id/3F4E62EC.15091.71172C@localhost

 · 

reply

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: shridhar_daithankar@persistent.co.in
  Subject: Re: Simple queries take forever to run
  In-Reply-To: <3F4E62EC.15091.71172C@localhost>
  References: <20030827182051.W85397-100000@megazone.bigpanda.com> <3F4E62EC.15091.71172C@localhost>

* 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