April 13, 2026

Leafing through database drama

B-trees and database indexes (2024)

Author jumps in as 'MySQL is king' claim sparks tree wars and DIY index lessons

TLDR: An interactive explainer showed how B‑trees make database lookups fast, and the author joined the comments. Readers debated a “MySQL is most popular” line, asked for a plain‑English list of B‑tree downsides, and shared alternatives like Microsoft’s Bf‑tree—turning a simple guide into a mini database debate salon.

A friendly tutorial on B‑trees—the “file cabinet” system that helps databases find stuff fast—hit the web with clickable animations, and the comment section immediately took root. Author Ben Dicken popped in with “Oh hey, I wrote this,” turning the thread into an impromptu office‑hours session. Readers loved the simple visuals but smelled a little déjà vu, with one user noting it’s been posted before and linking a PlanetScale course for extra credit.

Then came the gasoline: a line calling MySQL “arguably the world’s most popular” database. Cue eye‑rolls and mutters of “fight me.” The old Postgres‑vs‑MySQL rivalry sprouted instantly, with folks parsing the word “arguably” like it was a SQL clause. Meanwhile, the curious crowd asked for the dark side of B‑trees in plain talk—when do these index trees actually slow you down? One commenter begged for a simple list of failure cases, not academic fog.

Adding to the spice, a side quest appeared: links to Bf‑tree, Microsoft’s alternate take on indexes (paper, code). Translation: “Is the classic tree still the GOAT, or is there a new forest in town?” Between tree puns (“leaf me alone”) and practical tips, the vibe was equal parts classroom and cage match.

Key Points

  • The article explains how B‑trees and B+trees underpin database indexes in systems like MySQL, Postgres, MongoDB, and Dynamo.
  • B‑trees consist of ordered keys within nodes (root, internal, leaf), with subtree ordering enabling efficient search visiting one node per level.
  • Interactive animations demonstrate inserting key/value pairs, adjusting node capacity, and visualizing search operations.
  • B‑trees are well-suited to persistent storage because node sizes can be aligned with disk block sizes (e.g., 4K, 8K, 16K), optimizing I/O on HDDs/SSDs.
  • The post signals a related discussion on why UUIDs can be suboptimal as primary keys for B‑tree-based indexes.

Hottest takes

"MySQL, arguably the world's most popular database management system," — jiveturkey
"I keep hearing about the downside of B(+)-Trees... never seen a simple, detailed list" — whartung
"Oh hey, I wrote this!" — bddicken
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.