PROBLEM

The unindexed wall: scanning 10,000,000 rows on disk

Indexing & B-Trees · Step 1 of 10

1/10
UNINDEXED HEAP TABLE (120k PAGES) · O(N) Full Disk ScanscanscanscanOrders API54%customer_id=84921Seq ScanPlan76%120k pagesHeap Pages 1–40k94%Heap Pages 40–80k96%Heap Pages 80–120k94%
index traversal
3-hop page hit
full table scan
row + index write
disk I/O saturation
PAGES READ:120,000
QUERY P95:1,850 ms
DISK IOPS:96% full
COMPLEXITY:O(N) scan