Re: Hash index build performance tweak from sorting
Tomas Vondra <tomas.vondra@enterprisedb.com>
From: Tomas Vondra <tomas.vondra@enterprisedb.com>
To: David Rowley <dgrowleyml@gmail.com>
Cc: Simon Riggs <simon.riggs@enterprisedb.com>, Tom Lane <tgl@sss.pgh.pa.us>,
Amit Kapila <amit.kapila16@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2022-11-23T19:08:46Z
Lists: pgsql-hackers
On 11/23/22 14:07, David Rowley wrote: > On Fri, 18 Nov 2022 at 03:34, Tomas Vondra > <tomas.vondra@enterprisedb.com> wrote: >> I did some simple benchmark with v2 and v3, using the attached script, >> which essentially just builds hash index on random data, with different >> data types and maintenance_work_mem values. And what I see is this >> (median of 10 runs): > >> So to me it seems v2 performs demonstrably better, v3 is consistently >> slower - not only compared to v2, but often also to master. > > Could this just be down to code alignment changes? There does not > really seem to be any fundamental differences which would explain > this. > Could be, but then how do we know the speedup with v2 is not due to code alignment too? regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
-
Speedup hash index builds by skipping needless binary searches
- d09dbeb9bde6 16.0 landed
-
Improve speed of hash index build.
- e09d7a1262c6 16.0 landed
-
Change hash indexes to store only the hash code rather than the whole indexed
- 4adc2f72a4cc 8.4.0 cited