From: Dror Matalon <dror@zapatec.com>
To: pgsql-performance@postgresql.org
Subject: Re: Speeding up Aggregates
Date: Fri, 3 Oct 2003 15:03:58 -0700
Message-ID: <20031003220358.GR87525@rlx11.zapatec.com> (raw)
In-Reply-To: <200310031435.46838.josh@agliodbs.com>
References: <20031003202120.GO87525@rlx11.zapatec.com>
<200310031407.10343.josh@agliodbs.com>
<20031003212848.GP87525@rlx11.zapatec.com>
<200310031435.46838.josh@agliodbs.com>
On Fri, Oct 03, 2003 at 02:35:46PM -0700, Josh Berkus wrote:
> Dror,
>
> > I am using 7.4, and had tried NOT EXISTS and didn't see any
> > improvements.
>
> It wouldn't if you're using 7.4, which has improved IN performance immensely.
>
> What happens if you stop using a function and instead use a subselect?
An improvement. Now I'm getting in the 200 msec response time.
And by the way, I tried "not exists" again and it actually runs slower
than "not in."
>
> --
> -Josh Berkus
> Aglio Database Solutions
> San Francisco
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
--
Dror Matalon
Zapatec Inc
1700 MLK Way
Berkeley, CA 94709
http://www.zapatec.com
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-performance@postgresql.org
Cc: dror@zapatec.com
Subject: Re: Speeding up Aggregates
In-Reply-To: <20031003220358.GR87525@rlx11.zapatec.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