git.postgresql.org Git - postgresql.git/commit
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.
This is the main PostgreSQL git repository.
RSS
Atom