MySQL Index
MySQL Index
Deletion time
Space overhead
Leaf with “Perryridge” becomes underfull (actually empty, in this special case)
and merged with its sibling.
As a result “Perryridge” node’s parent became underfull, and was merged with i
ts sibling
Value separating two nodes (at parent) moves into merged node
Entry deleted from parent
Root node then has only one child, and is deleted
2n / 3
22/2/20 Cryptography page:36
36
Indexing Strings
Variable length strings as keys
Variable fanout
Use space utilization as criterion for splitting, not numbe
r of pointers
Prefix compression
Key values at internal nodes can be prefixes of full key
Keep enough characters to distinguish entries in the subtrees
separated by the key value
E.g. “Silas” and “Silberschatz” can be separated by “Sil
b”
Keys in leaf node can be compressed by sharing common prefi
xes