Re: does the query planner consider work_mem? - Mailing list pgsql-performance

From Ants Aasma
Subject Re: does the query planner consider work_mem?
Date
Msg-id CA+CSw_uuyJAC7xejcoD6n1b8XF-TKw8KU6d95ssXKaBVQ1HL8A@mail.gmail.com
Whole thread Raw
In response to does the query planner consider work_mem?  (Murat Tasan <mmuurr@gmail.com>)
Responses Re: does the query planner consider work_mem?
List pgsql-performance
On Wed, May 30, 2012 at 8:57 PM, Murat Tasan <mmuurr@gmail.com> wrote:
> any insights here?

Have you tried running the slow option multiple times? According to
the explain output all of the time was accounted to the bitmap heap
scan. For the second explain plan the same node was fast. It looks to
me as the first explain on 8.4 was slow because the data was still on
disk. Raising work mem doubled the speed of the sort from 800ms to
400ms.

Regards,
Ants Aasma
--
Cybertec Schönig & Schönig GmbH
Gröhrmühlgasse 26
A-2700 Wiener Neustadt
Web: http://www.postgresql-support.de

pgsql-performance by date:

Previous
From: Murat Tasan
Date:
Subject: does the query planner consider work_mem?
Next
From: Murat Tasan
Date:
Subject: Re: does the query planner consider work_mem?