开发者

which data structure is used in most popular databases?

i want to know which data structure(AVL, B-Tree, etc...) is used in most popular relational databases. and also in wha开发者_如何学Pythont way the data structure is superior than other in-class data structures? if possible a small comparison could help me a lot! thanks in advance!


It's usually B-tree or variants thereof, primarily because it packs nodes into blocks, unlike binary trees such as AVL.

A node of a B-tree has a fixed maximum size and holds multiple keys and multiple pointers to child nodes, meaning fewer blocks need to be retrieved from disk to look up a value (compared to a binary tree).

The Wikipedia article on B+ trees has a good introduction from the angle of its application to databases.


For SQL Server, there is background info here.


I would choose the B+ Selection Tree because it is appropriate for efficient insertion, deletion and range queries but if the database has not been changed since it was created, then a SIMPLE LINEAR INDEX is required

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜