Code Safari

Chapter 73·Intermediate

How Indexes Work: Inside the B-Tree

01 / 05

The core idea

Find rows without reading them all.

An index is a sorted lookup structure. It lets the database jump to matching rows instead of scanning every one — the single biggest lever on query speed.

How Indexes Work: Inside the B-Tree | Code Safari