B-Tree vs Hash Table

后端 未结 5 601
轻奢々
轻奢々 2020-12-22 16:32

In MySQL, an index type is a b-tree, and access an element in a b-tree is in logarithmic amortized time O(log(n)).

On the other hand, accessing an eleme

5条回答
  •  情话喂你
    2020-12-22 17:06

    I think Hashmaps don't scale as well, and can be expensive when the entire map needs to be rehashed.

提交回复
热议问题