ISAM: Indexed-Sequential-Access-Method: Adapted From Prof Joe Hellerstein's Notes
ISAM: Indexed-Sequential-Access-Method: Adapted From Prof Joe Hellerstein's Notes
Method
• Upshot
– Don’t brag about being an ISAM expert on your
resume
– Do understand how they work, and tradeoffs with
B+-trees
Range Searches
• ``Find all students with gpa > 3.0’’
– If data is in sorted file, do binary search to find first such
student, then scan to find others.
– Cost of binary search can be quite high.
• Simple idea: Create an `index’ file.
– Level of indirection again!
k1 k2 kN Index File
ISAM
P K P K 2 P K m Pm
0 1 1 2
Non-leaf
Pages
Leaf
Pages
Overflow
page
Primary pages
20 33 51 63
10* 15* 20* 27* 33* 37* 40* 46* 51* 55* 63* 97*
Data Pages
20 33 51 63
10* 15* 20* 27* 33* 37* 40* 46* 51* 55* 63* 97*
After Inserting 23*, 48*, 41*, 42* ...
Root
Index 40
Pages
20 33 51 63
Primary
Leaf 10* 15* 20* 27* 46* 55*
33* 37* 40* 51* 63* 97*
Pages
20 33 51 63
10* 15* 20* 27* 33* 37* 40* 46* 55* 63*