How TokuDB Fractal Tree Databases Work Presentation
How TokuDB Fractal Tree Databases Work Presentation
Bradley C. Kuszmaul
http://tokutek.com/technology
B-Trees show up in
database indexes (such
as MyISAM and
InnoDB), file systems
(such as XFS), and many
other storage systems.
B B
···
···
Insertions are
into this leaf node
B B
···
···
B B
···
···
Range Scan
B B
···
··· ···
12 17 23 30
5 10
3 6 8 12 17 23 26 30
5 10
3 6 8 12 17 23 26 30
3 6 8 12 17 23 26 30
3 6 8 12 17 23 26 30
5 10 7 15
3 6 8 12 17 23 26 30
MySQL UC 2010—How Fractal Trees Work 21
Not done inserting 7
5 10 7 15
3 6 8 12 17 23 26 30
5 7 10 15
3 6 8 12 17 23 26 30
9 5 10 2 18 33 40 3 6 8 12 17 23 26 30
31
9 5 10 2 18 33 40 3 6 8 12 17 23 26 30
9 31
5 10 2 18 33 40 3 6 8 12 17 23 26 30
5 9 10 31
2 18 33 40 3 6 8 12 17 23 26 30
2 5 9 10 18 31 33 40
3 6 8 12 17 23 26 30
2 3 5 6 8 9 10 12 17 18 23 26 30 31 33 40
3 6 8 12 17 23 26 30 4 7 9 19 20 21 27 29
2
At log N, search is too expensive.
5 7 10 15
Now let’s shave a factor of log N.
3 6 8 12 17 23 26 30
Others