Re:Why databases use ordered indexes but programming uses ha...
by geophile on Tuesday December 10, 2019 @03:30PM
(#21756532)
I don't think this is correct (about mostly range queries). Scan the code base of any application, and I predict you will see 90%+ queries not involving an inequality. That is for OLTP. For analytics, the answer might be different.
See section IV 4 E, "range queries" in "A comparison of adaptive radix trees and hash tables" (2015)
https://15721.courses.cs.cmu.edu/spring2019/papers/08-oltpin...
Even for the best hash table-based indexing B+Trees win. And combining this with the big cost of resizing (growing) or rehashing a table (rebalancing, i.e. Cuckoo) they are not useful.
Perhaps some adaptive hashing method could take care of this in the future.