Re: [HACKERS] Performance degradation in TPC-H Q18 - Mailing list pgsql-hackers

From Robert Haas
Subject Re: [HACKERS] Performance degradation in TPC-H Q18
Date
Msg-id CA+TgmoZhOAAgFUQ-ke80yik6SAOs_C9=PPS1ndMUB-bUbEk5ZA@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Performance degradation in TPC-H Q18  (Andres Freund <andres@anarazel.de>)
Responses Re: [HACKERS] Performance degradation in TPC-H Q18  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Mon, Mar 6, 2017 at 5:19 PM, Andres Freund <andres@anarazel.de> wrote:
> The whole performance issue trigger this thread only exists when the
> hashtable sizes are mis-estimated, right?  Turns out that after applying
> the just-committed changes, that "fixing" the bad-mixing and/or doing
> iteration that's not entirely in hash-order, slighty degrades
> performance.  The difference is that without either of those additional
> changes, we resize to the "right" size very early, when the hashtable is
> barely filled (i.e. only few entries need to be moved), because the
> imbalance is observed at tsart.  With the changes however the resizing
> happens when the table is pretty full (i.e. a lot of entries need to be
> moved).  So the early imbalance ends up actually not hurting
> performance...

Hmm.  I don't know what to do about that.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: [HACKERS] amcheck (B-Tree integrity checking tool)
Next
From: Michael Paquier
Date:
Subject: Re: [HACKERS] wait events for disk I/O