Re: performance drop on 8.2.4, reverting to 8.1.4

From: "George Pavlov" <gpavlov(at)mynewplace(dot)com>
To: "Liviu Ionescu" <ilgb(at)livius(dot)net>, <pgsql-performance(at)postgresql(dot)org>
Cc: "Steinar H(dot) Gunderson" <sgunderson(at)bigfoot(dot)com>
Subject: Re: performance drop on 8.2.4, reverting to 8.1.4
Date: 2007-05-18 15:13:08
Message-ID: 8C5B026B51B6854CBE88121DBF097A86C39661@ehost010-33.exch010.intermedia.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Liviu Ionescu 2007-05-18 15:40:31 Re: performance drop on 8.2.4, reverting to 8.1.4
Previous Message Mark Lewis 2007-05-18 13:58:03 Re: Ever Increasing IOWAIT