Cheat sheets

DB-15Cheat sheet1 pageIn a paid pack

File Organization and Indexes

Blocking factor, spanned and unspanned records and the number of blocks; heap, sorted and hashed files with the block accesses for equality search, range search and insertion; primary, clustering and secondary indexes, dense and sparse, and how many of each a file can have; the access count through a single-level index; a single file worked through every access path by script, with all sizes stated.

Diagrams from DB-15

DB-16Cheat sheet1 pageIn a paid pack

Multilevel Indexes and Tree Sizing

Multilevel indexes with fan-out and the number of levels; node layouts of the B-tree and the B+ tree; the inequalities that give the order of internal nodes and the capacity of leaves from block, key and pointer sizes; the conventions for "order" and minimum occupancy; the minimum and maximum height for a given number of keys; and block-access counts for search, all computed by script with every size stated.

DB-17Cheat sheet1 pageIn a paid pack

B+ Tree Insertion and Splits

The B+ tree insertion routine with leaf splits that copy a key up and internal splits that move a key up, the root split that adds a level, and the split-point conventions; a before-and-after diagram generated from a tested insert routine; B-tree insertion for contrast; ascending insertion and its half-full leaves; node counts after splits; deletion with borrowing and merging in brief; and two checked past GATE questions.

Diagrams from DB-17