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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: ec6550c) | patch
When creating a large hash index, pre-sort the index entries by estimated
2008年3月16日 23:15:08 +0000 (23:15 +0000)
2008年3月16日 23:15:08 +0000 (23:15 +0000)
commit 787eba734be8e1fb8c5fdb101a02e826cccec3e9
When creating a large hash index, pre-sort the index entries by estimated
bucket number, so as to ensure locality of access to the index during the
insertion step. Without this, building an index significantly larger than
available RAM takes a very long time because of thrashing. On the other
hand, sorting is just useless overhead when the index does fit in RAM.
We choose to sort when the initial index size exceeds effective_cache_size.

This is a revised version of work by Tom Raney and Shreya Bhargava.
src/backend/access/hash/Makefile diff | blob | blame | history
src/backend/access/hash/hash.c diff | blob | blame | history
src/backend/access/hash/hashpage.c diff | blob | blame | history
src/backend/access/hash/hashsort.c [new file with mode: 0644] blob
src/backend/access/nbtree/nbtsort.c diff | blob | blame | history
src/backend/utils/sort/tuplesort.c diff | blob | blame | history
src/include/access/hash.h diff | blob | blame | history
src/include/utils/tuplesort.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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