---
answer: direct
beat: system-design
source: 1 article · updated: September 1, 2026
---

Why is disk I/O the thing index structures are actually optimizing for?

Reading from disk (or even from a cold page cache) costs orders of magnitude more time than an in-memory comparison. An index structure's real job is minimizing the number of disk page reads needed to find a value, not minimizing the number of comparisons — which is why B-trees are shaped around fitting many keys per disk page, not around minimizing tree depth for its own sake.

Answered in

What Actually Happens Inside a Database Index: The Data Structures

An index trades disk I/O for lookup speed. Here's how B-trees, hash tables, and bitmap indexes each make that trade differently.

Crashtech Editorial September 1, 2026 System Design

Read the full analysis

Other questions this article answers

More system design questions

Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the System Design beat.