From: Steinar H. Gunderson <sgunderson@bigfoot.com>
To: pgsql-performance@postgresql.org
Subject: Re: Odd sorting behaviour
Date: Wed, 21 Jul 2004 12:04:10 +0200
Message-ID: <20040721100410.GC26552@uio.no> (raw)
In-Reply-To: <1090376297.12565.9.camel@jester>
References: <20040708101913.GA15871@uio.no>
<20040715120854.GA31259@uio.no>
<20040720115116.GB19633@uio.no>
<200407201006.08649.josh@agliodbs.com>
<20040720172100.GA22262@uio.no>
<1090376297.12565.9.camel@jester>
On Tue, Jul 20, 2004 at 10:18:19PM -0400, Rod Taylor wrote:
> I've taken a look and managed to cut out quite a bit of used time.
> You'll need to confirm it's the same results though (I didn't -- it is
> the same number of results (query below)
It looks very much like the same results.
> Secondly, I had no luck getting the hashjoin but this probably doesn't
> matter. I've assumed that the number of users will climb faster than the
> product set offered, and generated additional data via the below command
> run 4 times:
Actually, the number of users won't climb that much faster; what will
probably increase is the number of opinions.
> I found that by this point, the hashjoin and mergejoin have essentially
> the same performance -- in otherwords, as you grow you'll want the
> mergejoin eventually so I wouldn't worry about it too much.
Hm, OK.
> -- Plain join okay since o12.correlation <> 0
> -- eliminates any NULLs anyway.
> -- Was RIGHT JOIN
OK, that makes sense (although I don't really see why it should be faster).
> -- Was old Left join
> WHERE o3.prodid NOT IN (SELECT prodid
> FROM opinions AS o4
> WHERE uid = 1355)
As my server is 7.2 and not 7.4, that obviously won't help much :-) Thanks
anyway, though -- we'll upgrade eventually, and it'll help then.
/* Steinar */
--
Homepage: http://www.sesse.net/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: sgunderson@bigfoot.com
Subject: Re: Odd sorting behaviour
In-Reply-To: <20040721100410.GC26552@uio.no>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox