From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: Luke Lonergan <llonergan@greenplum.com>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: Kurt Harriman <kharriman@greenplum.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Sort performance on large tables
Date: Tue, 8 Nov 2005 12:48:45 -0800 (PST)
Message-ID: <20051108124255.Y43056@megazone.bigpanda.com> (raw)
In-Reply-To: <BF9637D3.1338F%llonergan@greenplum.com>
References: <BF9637D3.1338F%llonergan@greenplum.com>
On Tue, 8 Nov 2005, Luke Lonergan wrote:
> Stephan,
>
> On 11/8/05 9:38 AM, "Stephan Szabo" <sszabo@megazone.bigpanda.com> wrote:
>
> >> >
> >> > Just as we find with a similar comparison (with a "popular commercial,
> >> > proprietary database" :-) Though some might suggest you increase
> >> > work_mem or other tuning suggestions to speed sorting, none work. In
> >> > fact, we find that increasing work_mem actually slows sorting slightly.
> >
> > I wish you'd qualify your statements, because I can demonstrably show that
> > I can make sorts go faster on my machine at least by increasing work_mem
> > under some conditions.
> >
> Cool can you provide your test case please?
I probably should have added the wink smiley to make it obvious I was
talking about the simplest case, things that don't fit in work_mem at the
current level but for which it's easy to raise work_mem to cover. It's not
a big a gain as one might hope, but it does certainly drop again.
> Recognize also that we¹re looking for a factor of 10 or more improvement
> here this is not a small increase that¹s needed.
I agree that we definately need help on that regard. I do see the effect
where raising work_mem lowers the performance up until that point. I just
think that it requires more care in the discussion than disregarding the
suggestions entirely especially since people are going to see this in the
archives.
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: sszabo@megazone.bigpanda.com, llonergan@greenplum.com, simon@2ndquadrant.com, kharriman@greenplum.com
Subject: Re: Sort performance on large tables
In-Reply-To: <20051108124255.Y43056@megazone.bigpanda.com>
* 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