Re: Subselect query enhancement

From: "Michael Artz" <mlartz(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Subselect query enhancement
Date: 2007-02-01 18:14:56
Message-ID: e9c163070702011014g7c90f0f3v8bff5fcb0de27f7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

> How about this option:
>
> SELECT distinct ip_info.* FROM ip_info RIGHT JOIN network_events USING
> (ip) RIGHT JOIN host_events USING (ip) WHERE
> (network_events.name='blah' OR host_events.name = 'blah') AND
> ip_info.ip IS NOT NULL;

Nah, that seems to be much much worse. The other queries usually
return in 1-2 minutes, this one has been running for 30 minutes and
has still not returned

-Mike

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Frank Wiles 2007-02-01 18:20:45 Re: Subselect query enhancement
Previous Message Ted Allen 2007-02-01 17:28:51 Re: Subselect query enhancement