Re: Why are queries with subselects so slow? - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Why are queries with subselects so slow?
Date
Msg-id 20030307062307.GH22303@svana.org
Whole thread Raw
In response to Why are queries with subselects so slow?  ("Robert Wille" <robertw@willeweb.com>)
List pgsql-general
On Thu, Mar 06, 2003 at 10:38:09PM -0700, Robert Wille wrote:
> I am trying to execute an update that has a subselect, and it takes an extraordinarily long time.
> By performing the subselect in my application, and issuing the update multiple times, it appears that I can do the
entireupdate about 400 times faster. 

Try using EXISTS rather than IN. It tends to work better.

Hope this helps,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Support bacteria! They're the only culture some people have.

Attachment

pgsql-general by date:

Previous
From: valerian
Date:
Subject: Re: index on lower(column) is very slow
Next
From: "Mr.F"
Date:
Subject: New Interface for Win