Re: Speeding up Aggregates

From: Dror Matalon <dror(at)zapatec(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Speeding up Aggregates
Date: 2003-10-03 22:03:58
Message-ID: 20031003220358.GR87525@rlx11.zapatec.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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(at)postgresql(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Rod Taylor 2003-10-03 22:10:29 Re: Speeding up Aggregates
Previous Message Bruno Wolff III 2003-10-03 21:59:39 Re: reindex/vacuum locking/performance?