Re: Parallel bitmap heap scan
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Dilip Kumar <dilipbalaut@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2016-10-19T07:09:30Z
Lists: pgsql-hackers
On 2016-10-19 09:43:10 +0530, Dilip Kumar wrote: > On Tue, Oct 18, 2016 at 1:42 AM, Robert Haas <robertmhaas@gmail.com> wrote: > > But what's the impact on performance? Presumably parallel bitmap heap > > scan was already slower than the non-parallel version, and that commit > > presumably widens the gap. Seems like something to worry about... > > I have checked the performance in my local machine and there is no > impact on the gap. Try measuring with something more heavy on bitmap scan time itself. E.g. SELECT SUM(l_extendedprice) FROM lineitem WHERE (l_shipdate >= '1995-01-01'::date) AND (l_shipdate <= '1996-12-31'::date); or similar. The tpch queries don't actually spend that much time in the bitmapscan itself - the parallization of the rest of the query is what matters... Greetings, Andres Freund
Commits
-
Pass DSA_ALLOC_HUGE when allocating a shared TIDBitmap.
- a171f01501e1 10.0 landed
-
Support parallel bitmap heap scans.
- f35742ccb7aa 10.0 landed
-
tidbitmap: Support shared iteration.
- 98e6e89040a0 10.0 landed
-
Shut down Gather's children before shutting down Gather itself.
- acf555bc53ac 10.0 landed
-
Revise the way the element allocator for a simplehash is specified.
- c3c4f6e1740b 10.0 cited
-
Refactor bitmap heap scan estimation of heap pages fetched.
- da08a6598973 10.0 landed
-
Use more efficient hashtable for tidbitmap.c to speed up bitmap scans.
- 75ae538bc316 10.0 cited