Re: Subselect query enhancement - Mailing list pgsql-performance

From Michael Artz
Subject Re: Subselect query enhancement
Date
Msg-id e9c163070702011014g7c90f0f3v8bff5fcb0de27f7@mail.gmail.com
Whole thread Raw
In response to Re: Subselect query enhancement  (Ted Allen <tallen@blackducksoftware.com>)
Responses Re: Subselect query enhancement
List 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

pgsql-performance by date:

Previous
From: Ted Allen
Date:
Subject: Re: Subselect query enhancement
Next
From: Frank Wiles
Date:
Subject: Re: Subselect query enhancement