Re: performance drop on 8.2.4, reverting to 8.1.4 - Mailing list pgsql-performance

From George Pavlov
Subject Re: performance drop on 8.2.4, reverting to 8.1.4
Date
Msg-id 8C5B026B51B6854CBE88121DBF097A86C39661@ehost010-33.exch010.intermedia.net
Whole thread Raw
In response to Re: performance drop on 8.2.4, reverting to 8.1.4  ("Liviu Ionescu" <ilgb@livius.net>)
Responses Re: performance drop on 8.2.4, reverting to 8.1.4
List pgsql-performance
> > This seems to be the source of the misestimation. You might
> > want to try using "n WHERE n.nodein NOT IN (SELECT nodeid
> > FROM templates)" instead of "n LEFT JOIN templates USING
> > (nodeid) WHERE templates.nodeid IS NULL" and see if it helps.
>
> it helped, the new version of the query takes 2303 ms on both
> 8.1.4 and 8.2.4.

this is very interesting. on 8.1.x i have also repeatedly had to rewrite
joins as their equivalent IN/NOT IN alternatives in order to improve
performance, so i feel that at least under some alignments of the
planets 8.1 has similar problems.

george

pgsql-performance by date:

Previous
From: Mark Lewis
Date:
Subject: Re: Ever Increasing IOWAIT
Next
From: "Liviu Ionescu"
Date:
Subject: Re: performance drop on 8.2.4, reverting to 8.1.4