Pinned
Ben
Ben
@benjdd.com
databases @planetscale.com Some stuff I've written: - https://pscale.link/io - https://pscale.link/btrees - https://pscale.link/sharding Find me at benjdd.com
325 followers66 following357 posts
Ben reposted
Introducing pg_strict for Postgres. Our new extension adds a safety net to Postgres, catching dangerous queries before they run. www.youtube.com/watch?v=noPn...
Tuning your database just right can be counter-intuitive, unless you understand all levels of the system. Intuitively, most would say "more work_mem = better" for building indexes, but this hurts performance due to L3 cache behavior. Great article by Tomas Vondra. vondra.me/posts/dont-g...
They function similarly to B-trees: It’s a tree structure with multiple entries at each page-aligned node. This generally keeps the trees nice and shallow, and allows for efficient lookups for millions of elements stored on-disk. It also generally only stores data values at the leaves, like B+trees.
TLDR: io_uring won't help much if treated as a drop-in replacement for existing database I/O architectures. Better performance will often require architectural changes. When applied, there's tons of performance gains to be had. Here's the paper: arxiv.org/pdf/2512.04859
Need a break from AI in the timeline? Listen to me talk about data organization instead :) Friday's stream was a fun one. Sequential writes, binary search trees, block I/O devices, and B-trees. The latest slice dropped this afternoon. www.youtube.com/watch?v=84b_...
Cameras, lenses, framing, and everything in-between have fascinated me for many year. This morning I read Bartosz Ciechanowski's article on the subject. It's the best explainer I've seen. The interactivity really sells it. Great article to kick off your year with: ciechanow.ski/cameras-and-...
We need indexes to make databases fast. BUT there are some important time/space and read/write optimization tradeoffs to consider! Latest YT → fun overview of this aspect of databases. www.youtube.com/watch?v=cNw9...
This is the best article I've read on MVCC in MySQL. MySQL and Postgres use quite different engineering techniques are used to address the same problem. Undo log vs multiple tuple versions. Another great one by Jeremy Cole. blog.jcole.us/2014/04/16/t...
Ben reposted
I’ve recently seen multiple, unrelated instances of people referencing Bf-trees. Good job, @benjdd.com.
Had a great first "Database Internals" livestream yesterday. I'm aiming for more "regular" YouTubing in 2026, much of which will be chopping up interesting segments from the streams. Speaking of which: new video has DROPPED! www.youtube.com/watch?v=wdJe...
Read here: brandur.org/postgres-con...