Re: left outer join terrible slow compared to inner join - Mailing list pgsql-general

From Sean Chittenden
Subject Re: left outer join terrible slow compared to inner join
Date
Msg-id 20030828183139.GL83759@perrin.nxad.com
Whole thread Raw
In response to Re: left outer join terrible slow compared to inner join  ("Clay Luther" <claycle@cisco.com>)
List pgsql-general
> Actually, I was about to post some problems we have with large left
> outer joins as well we've discovered in a porting project from
> NT/SQL Server -> Linux/Postgres.
>
> We have a particular query that is rather large, left outer joining
> across several tables.  Under SQL Server, with identical data and
> schema, this particular query takes 2 seconds.
>
> Under PostgreSQL, this same query takes 90 seconds -- that's right,
> 90 seconds.  45x longer than SQL Server.  This was quite a shock to
> us (we'd not seen such a performance deficit between the two dbs
> until this) and could, in fact, force us away from Postgres.
>
> I'd be happy to forward the explain to anyone who'd care to look at
> it...

Post an EXPLAIN ANALYZE of the query...

-sc

--
Sean Chittenden

pgsql-general by date:

Previous
From: "Clay Luther"
Date:
Subject: Re: left outer join terrible slow compared to inner join
Next
From: "Clay Luther"
Date:
Subject: Re: left outer join terrible slow compared to inner join