git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 70a437a) | patch
Improve speed of hash index build.
2022年7月28日 18:34:32 +0000 (14:34 -0400)
2022年7月28日 18:34:32 +0000 (14:34 -0400)
commit e09d7a1262c659578065eaf7edafe606d2c8ebf2
Improve speed of hash index build.

In the initial data sort, if the bucket numbers are the same then
next sort on the hash value. Because index pages are kept in
hash value order, this gains a little speed by allowing the
eventual tuple insertions to be done sequentially, avoiding repeated
data movement within PageAddItem. This seems to be good for overall
speedup of 5%-9%, depending on the incoming data.

Simon Riggs, reviewed by Amit Kapila

Discussion: https://postgr.es/m/CANbhV-FG-1ZNMBuwhUF7AxxJz3u5137dYL-o6hchK1V_dMw86g@mail.gmail.com
src/backend/access/hash/hashsort.c diff | blob | blame | history
src/backend/utils/sort/tuplesortvariants.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /