P.01How Database Indexes Actually Work (And When They Make Queries Slower)
An index turns a table scan into a handful of comparisons, but only for the queries it was built for. Here's how B-tree indexes work under the hood, when clustered and non-clustered indexes diverge, and why adding one can slow down writes you weren't thinking about.




















