Home / cs-notes / Architecture / Components / Database / MySQL / Index / B+ Tree Index
-
Balance Tree
-
Operation
- Deep Search
- break balance
- tree node split
- tree node re-merge
- Deep Search
Compare with Red-Black Tree
- less search
- bigger out degree
- more children in one node
- smaller tree height
- bigger out degree
- use disk pre-read
ordered reading
- less IO operation
- less disk track switching
Primary Index
- unique each table
- save data in
data
field
Secondary Index
- save primary key in
data
field