|
|
|
|
|
by makmanalp
3182 days ago
|
|
One thing that doesn't make the two interchangeable is total ordering and range queries, which are only supported by B-trees and not by hash indexes. So the question is whether you're willing to trade that away for faster insertion and lookup. > When you have fast byte-addressable storage it will pay to not read pages It always pays to not read pages :-) An alternative way to look at it is that faster storage is more forgiving of more accesses, meaning the benefits of hash indexes might be less prominent. |
|
I wouldn't characterize the decision as a trade off. They're different tools for different situations.