Re: Why is outer Join way quicker? - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Why is outer Join way quicker?
Date
Msg-id 20020423095150.V14757-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Why is outer Join way quicker?  (David Link <dlink@soundscan.com>)
List pgsql-general
On Tue, 23 Apr 2002, David Link wrote:

> Hi.
>
> We have found that by using an Outer Join it speeds up this query
> considerably.
>
> Why is that?
>
> According to the explain plan the hold up has to do with a single nexted
> loop and a "Materilize"?  This makes no sense to me.  Can some one
> explain.
>
> Thanks. -David
>
> The difference between these two queries is the first uses an outer join
> between u and t, while the second (the slower) uses a straight forward
> join).

See:
http://www.postgresql.org/idocs/index.php?explicit-joins.html

You can probably use an inner join as well, you just need to use
the explicit join syntax.


pgsql-general by date:

Previous
From: "Ian Harding"
Date:
Subject: Re: Connections per second?
Next
From: Neil Conway
Date:
Subject: Re: Suggestions for Large DB Dump/Reload