Home▸Computer Science▸Database Index Page-I/O Lab: B+ Tree Height, Hash Probes and the Index-vs-Scan Crossover

🗄️ Database Index Page-I/O Lab: B+ Tree Height, Hash Probes and the Index-vs-Scan Crossover

Build a live B+ tree key by key and watch node splits, then scale the same cost model to millions of rows: tree height from fanout, cache effects on page reads, hash-index probe counts and the selectivity at which a sequential scan beats an index. Includes independent checks against a measured tree and hash table.

Computer Science2DModerate60 FPS📱 Mobile-adapted
database-index-page-io-bplus-tree-hash-seqscan-crossover-lab ↗ Open standalone
⚙ Under the hood

Build a live B+ tree key by key and watch node splits, then scale the same cost model to millions of rows: tree height from fanout, cache effects on page reads, hash-index probe counts and the selectivity at which a sequential scan beats an index. Includes independent checks against a measured tree and hash table.

DatabasesB+ treeIndexingQuery costHash table

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)