SQLite Query Explainer

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Developers who can't read SQLite's EXPLAIN output now have a browser tool that translates every query plan line into plain English, no install required.

Read this as

Simon Willison built a free website that explains how the SQLite database runs your queries. SQLite has a command called EXPLAIN that shows the steps a database takes, but the output is famously cryptic. This tool runs SQLite entirely in your web browser and annotates every line of that output with plain-English descriptions. It was inspired by Julia Evans, who admitted she'd like to learn to read query plans someday.

Willison published a free, browser-based tool that annotates SQLite's EXPLAIN and EXPLAIN QUERY PLAN output in plain English, built with the AI tool Fable. It targets developers who debug database performance but lack query-plan literacy. No cost, no product line, no company behind it, impact is limited to engineers who use SQLite directly.

The tool runs the SQLite interpreter in Python inside Pyodide (WebAssembly) entirely in the browser, then annotates both EXPLAIN QUERY PLAN and low-level EXPLAIN bytecode output with plain-English descriptions of the query planner and virtual machine. Willison cautions he cannot verify the explanations himself, lacking query-plan expertise. Related context on his blog includes running the full server-side Datasette app in-browser via service workers and Pyodide.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

SQLite Pyodide WebAssembly Datasette Fable

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading