---
title: "Rewriting SQLite from scratch (yes, really)"
url: "https://aaronfrancis.com/videos/rewriting-sqlite-from-scratch-yes-really"
path: "/videos/rewriting-sqlite-from-scratch-yes-really"
type: video
author: Aaron Francis
published: 2025-08-08
topic: Databases
keywords: [sqlite rewrite, turso, deterministic simulation testing, glauber costa, libsql, sqlite, serverless sqlite, property-based testing, open contribution, sqlite fork, database reliability, turso cloud]
youtube_url: "https://www.youtube.com/watch?v=010OKqc3ObM"
chunked: true
full_bytes: 104857
section_count: 33
full_url: "/videos/rewriting-sqlite-from-scratch-yes-really/full.md"
site_index: "/llms.txt"
keyword_index: "/llms/keywords.txt"
---

# Rewriting SQLite from scratch (yes, really)

## Sections (102.4 KB full document — follow any link to read verbatim)

This page is long enough to hit agent truncation cliffs if fetched all at once. Pick the section matching your question below to read it 100% verbatim (< 35 KB each), or open the [full unsplit document (102.4 KB)](/videos/rewriting-sqlite-from-scratch-yes-really/full.md).

### 1. Intro to guest Glauber Costa (00:00–01:03 · 1.2 KB)
Aaron Francis: In this episode of Database School, you are going to hear me, Aaron Francis, talk to my friend Glauber Costa. He is the CEO of Turso, and they are embarking on an ambitious full rewrite...
Keywords: `glauber costa`, `glauber`, `database school`, `costa`, `guest glauber`, `sqlite`, `intro`, `database`
[Read section 1 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/1-intro-to-guest-glauber-costa.md)

### 2. Glauber's background and path to databases (01:04–02:24 · 1.5 KB)
Glauber Costa: Aaron, thank you so much for having me. Uh, uh, it's a pleasure. Uh, I think it's my second time here chatting with you, uh, and it's always a pleasure to, to talk about, uh, the things...
Keywords: `glauber background`, `glauber`, `background`, `path`, `databases`, `costa`, `nosql`, `sqlite`
[Read section 2 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/2-glaubers-background-and-path-to-databases.md)

### 3. Moving to Texas and life changes (02:24–05:41 · 4.5 KB)
Glauber Costa: Yeah.
Keywords: `texas`, `sqlite`, `moving`, `costa`, `rewriting sqlite`, `three kids`, `small town`, `craziest thing`
[Read section 3 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/3-moving-to-texas-and-life-changes.md)

### 4. The origin story of Turso (05:41–08:08 · 2.7 KB)
Glauber Costa: Yes
Keywords: `sqlite`, `turso`, `origin story`, `origin`, `costa`, `name turso`, `libsql`, `pekka`
[Read section 4 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/4-the-origin-story-of-turso.md)

### 5. Why fork SQLite in the first place? (08:09–10:47 · 3.2 KB)
Glauber Costa: But the problem is that you make those changes, fine, uh, and then what do you do? And, and again, we've been doing open source for, for all of our lives, and what do you do is that you...
Keywords: `sqlite`, `fork sqlite`, `fork`, `costa`, `open source`, `closed community`, `necessarily become`, `open contribution`
[Read section 5 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/5-why-fork-sqlite-in-the-first-place.md)

### 6. SQLite’s closed contribution model (10:47–12:01 · 1.4 KB)
Glauber Costa: I mean, uh, they have the right to do what they do, but we f- we figure like a... The usual open-source saying is if you don't like it, fork it. And, and that's what we did. So-
Keywords: `sqlite`, `sqlite closed`, `closed contribution`, `contribution model`, `contribution`, `closed`, `model`, `imagine sqlite`
[Read section 6 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/6-sqlites-closed-contribution-model.md)

### 7. Launching libSQL as an open contribution fork (12:01–14:08 · 2.3 KB)
Glauber Costa: Uh, and so you could... We, we built a server around it, which was part of the LibSQL project. Uh, you, you could send HTTP requests, uh, with, uh, with your SQL statements to it, uh, a...
Keywords: `libsql`, `open contribution`, `contribution fork`, `sqlite`, `fork`, `contribution`, `launching libsql`, `libsql project`
[Read section 7 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/7-launching-libsql-as-an-open-contribution-fork.md)

### 8. Building Turso Cloud for serverless SQLite (14:08–15:07 · 1.2 KB)
Glauber Costa: network when needed, and still retain, of course, the, the, the local, uh, the, the, the ability to run it locally. Uh, and then you had vector search. Uh, and, and that was 99% of what...
Keywords: `sqlite`, `building turso`, `turso cloud`, `serverless sqlite`, `turso`, `cloud`, `serverless`, `schema changes`
[Read section 8 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/8-building-turso-cloud-for-serverless-sqlite.md)

### 9. Limitations of forking SQLite (15:07–17:06 · 2.6 KB)
Glauber Costa: And, and that's where, uh, the rewrite, uh, came from, right?
Keywords: `sqlite`, `forking sqlite`, `limitations`, `forking`, `open source`, `costa`, `rock solid`, `source`
[Read section 9 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/9-limitations-of-forking-sqlite.md)

### 10. Deciding to rewrite SQLite from scratch (17:07–19:12 · 2.8 KB)
Glauber Costa: Mm-hmm
Keywords: `sqlite`, `scratch`, `rewrite sqlite`, `deciding`, `libsql`, `costa`, `mm-hmm`, `present moment`
[Read section 10 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/10-deciding-to-rewrite-sqlite-from-scratch.md)

### 11. Branding mistakes and naming decisions (19:12–22:32 · 4.0 KB)
Aaron Francis: Sure
Keywords: `turso cloud`, `sqlite`, `branding mistakes`, `naming decisions`, `branding`, `naming`, `decisions`, `costa`
[Read section 11 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/11-branding-mistakes-and-naming-decisions.md)

### 12. Differentiating Turso (the database) from Turso Cloud (22:32–24:06 · 2.3 KB)
Aaron Francis: Mm-hmm.
Keywords: `turso cloud`, `turso`, `sqlite`, `cloud`, `database`, `differentiating turso`, `libsql`, `differentiating`
[Read section 12 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/12-differentiating-turso-the-database-from-turso.md)

### 13. Technical barriers that led to the rewrite (24:06–28:20 · 4.7 KB)
Glauber Costa: Turso, yeah.
Keywords: `sqlite`, `turso cloud`, `technical barriers`, `technical`, `barriers`, `led`, `costa`, `deep changes`
[Read section 13 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/13-technical-barriers-that-led-to-the-rewrite.md)

### 14. Why libSQL plateaued for deeper improvements (28:20–30:15 · 2.2 KB)
Glauber Costa: You can do queries that mix and match normal SQL with vector. It's beautiful. But whenever you use an index, uh, then you have to explicitly write a join with, with an external table an...
Keywords: `libsql`, `sqlite`, `libsql plateaued`, `deeper improvements`, `plateaued`, `improvements`, `costa`, `schema changes`
[Read section 14 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/14-why-libsql-plateaued-for-deeper-improvements.md)

### 15. Big business partner request leads to deeper rethink (30:15–31:25 · 1.4 KB)
Aaron Francis: Mm-hmm.
Keywords: `business partner`, `partner request`, `request leads`, `deeper rethink`, `sqlite`, `partner`, `request`, `leads`
[Read section 15 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/15-big-business-partner-request-leads-to-deeper-ret.md)

### 16. The rewrite begins (31:25–33:43 · 2.6 KB)
Glauber Costa: I mean, that's what I love about him. Uh, e- even though I told him it was probably not the smartest, uh, you know, idea, uh, not from the technical point of view. But, uh, he decided t...
Keywords: `github`, `rewrite begins`, `sqlite`, `begins`, `github account`, `early sign`, `costa`, `opcode`
[Read section 16 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/16-the-rewrite-begins.md)

### 17. Early community traction and GitHub stars (33:43–35:04 · 1.3 KB)
Glauber Costa: without, without anything, this got you 1,000 GitHub stars, which is what a lot of open source projects never get you. Um, which is a very cheap metric, but now's the, now's the real me...
Keywords: `github`, `github stars`, `early community`, `community traction`, `community`, `stars`, `traction`, `github account`
[Read section 17 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/17-early-community-traction-and-github-stars.md)

### 18. Hiring contributors from the community (35:05–37:03 · 1.9 KB)
Glauber Costa: Uh, what does it support? It supports select and, and, and a couple of functions. Uh, s- and w- wh- who are those contributors? So we have, we have a lot of, we have a lot of, uh, we ha...
Keywords: `hiring contributors`, `contributors`, `hiring`, `community`, `costa`, `pet project`, `complex`, `decided`
[Read section 18 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/18-hiring-contributors-from-the-community.md)

### 19. Reigniting the original vision (37:03–40:01 · 3.0 KB)
Glauber Costa: Don't read too much into it. This is just an experiment. Uh, if it works, maybe in the future we can get some people working on it." Um, and, and it was just like, this is something coo...
Keywords: `github`, `original vision`, `sqlite`, `reigniting`, `original`, `vision`, `costa`, `contributors`
[Read section 19 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/19-reigniting-the-original-vision.md)

### 20. Turso’s core business thesis (40:01–42:00 · 2.5 KB)
Glauber Costa: we make that, we're not gonna be able to test this, right? Uh, so, so it became clear that for us to realize our vision, uh, uh, we had to, we had to do this from, from the scratch. And...
Keywords: `turso core`, `core business`, `business thesis`, `turso`, `core`, `thesis`, `feature`, `costa`
[Read section 20 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/20-tursos-core-business-thesis.md)

### 21. Fully pivoting the company around the rewrite (42:00–45:29 · 4.0 KB)
Glauber Costa: Uh, if you are happy, like, we're not gonna be making, uh, general improvements, uh, a- anymore. Uh, you know, some of them, of course, we do. If, if things are broken, we'll, we'll fix...
Keywords: `turso cloud`, `company`, `fully pivoting`, `sqlite`, `fully`, `pivoting`, `costa`, `people working`
[Read section 21 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/21-fully-pivoting-the-company-around-the-rewrite.md)

### 22. How GitHub contributors signal business alignment (45:29–47:27 · 2.2 KB)
Glauber Costa: Yeah
Keywords: `sqlite`, `github`, `signal`, `github contributors`, `contributors signal`, `signal business`, `business alignment`, `contributors`
[Read section 22 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/22-how-github-contributors-signal-business-alignmen.md)

### 23. SQLite’s rock-solid rep and test suite challenges (47:28–49:16 · 1.9 KB)
Glauber Costa: And with libsql, that did not happen, right? So, so with Turso at the time being called the, the Limbo Project, it happened immediately out of the bat. And then I started, uh... And, an...
Keywords: `sqlite`, `sqlite rock-solid`, `rock-solid rep`, `test suite`, `suite challenges`, `rock-solid`, `rep`, `test`
[Read section 23 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/23-sqlites-rock-solid-rep-and-test-suite-challenge.md)

### 24. The magic of deterministic simulation testing (49:16–53:00 · 4.6 KB)
Glauber Costa: I mean, we don't want to bring people to necessarily to the cloud business anymore, right? We want, we want this to, you know, we want this ev- we want every device in the world to be r...
Keywords: `turso cloud`, `sqlite`, `deterministic simulation`, `simulation testing`, `magic`, `deterministic`, `simulation`, `testing`
[Read section 24 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/24-the-magic-of-deterministic-simulation-testing.md)

### 25. How the simulator injects and replays IO failures (53:00–56:12 · 3.5 KB)
Glauber Costa: Ourselves, yeah
Keywords: `simulator injects`, `replays io`, `io failures`, `sqlite`, `tigervito`, `tigerbeetle`, `simulator`, `injects`
[Read section 25 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/25-how-the-simulator-injects-and-replays-io-failure.md)

### 26. The role of property-based testing (56:12–59:12 · 3.1 KB)
Glauber Costa: I mean, you have to write a, a F-ton of tests. You, you have to write five times more tests than, than, than you write, uh, code, uh, if you want this level of reliability. Deterministi...
Keywords: `testing`, `property-based testing`, `role`, `property-based`, `o subsystem`, `costa`, `test`, `tests`
[Read section 26 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/26-the-role-of-property-based-testing.md)

### 27. Offering cash for bugs that break data integrity (59:12–1:01:06 · 2.1 KB)
Glauber Costa: Because then you have to ima... H-how, how did that came to be? And you come up with a thesis, and then you try to reproduce it, and then you never reproduce it. With deterministic simu...
Keywords: `data`, `integrity`, `offering cash`, `break data`, `data integrity`, `bugs`, `offering`, `cash`
[Read section 27 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/27-offering-cash-for-bugs-that-break-data-integrity.md)

### 28. Deterministic testing vs traditional testing (1:01:07–1:03:46 · 3.2 KB)
Glauber Costa: Because those, those issues happen because the, the, the simulator did not explore some part of the space of possibilities well enough. And then what you do is, is instead of say- inste...
Keywords: `testing`, `deterministic`, `turso cloud`, `deterministic testing`, `testing vs`, `vs traditional`, `traditional testing`, `traditional`
[Read section 28 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/28-deterministic-testing-vs-traditional-testing.md)

### 29. What it took to release Turso Alpha (1:03:46–1:05:50 · 2.3 KB)
Glauber Costa: Uh, and then you go from there, from there, from there. So what happened between those, those-- between December and now that we just said, "Okay, now is the time that we rename this to...
Keywords: `turso alpha`, `release turso`, `turso`, `release`, `alpha`, `took`, `costa`, `simulator`
[Read section 29 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/29-what-it-took-to-release-turso-alpha.md)

### 30. Encouraging contributors with real incentives (1:05:50–1:07:53 · 2.4 KB)
Glauber Costa: It's that it happens way less than it would at any open source project at this level of maturity. Because again, the simulator is not magic. The simulator is still software, and it has...
Keywords: `turso cloud`, `encouraging contributors`, `real incentives`, `encouraging`, `contributors`, `incentives`, `simulator`, `turso`
[Read section 30 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/30-encouraging-contributors-with-real-incentives.md)

### 31. How to get involved and contribute (1:07:54–1:20:00 · 14.5 KB)
Glauber Costa: Uh, we focus a lot our simulating efforts in data corruption. We have not focused our efforts in correctness, so we're not paying you anything for correctness. Uh, but in, you know, we,...
Keywords: `phd`, `involved`, `contribute`, `costa`, `deterministic simulation`, `simulation testing`, `simulator`, `testing`
[Read section 31 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/31-how-to-get-involved-and-contribute.md)

### 32. Upcoming roadmap: indexes, CDC, schema changes (1:20:00–1:23:57 · 4.7 KB)
Aaron Francis: Mm-hmm
Keywords: `schema changes`, `sqlite`, `database indexes`, `schema`, `upcoming roadmap`, `upcoming`, `roadmap`, `cdc`
[Read section 32 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/32-upcoming-roadmap-indexes-cdc-schema-changes.md)

### 33. Final thoughts and where to find Turso (1:23:57–1:27:45 · 5.1 KB)
Glauber Costa: We wanna, we wanna make it better, uh, and we wanna make it more capable. It's also very hard, uh, so we don't know exactly where we're going to be at that point. The third one is, uh,...
Keywords: `sqlite`, `turso`, `final thoughts`, `find turso`, `thoughts`, `costa`, `apple pies`, `yall`
[Read section 33 verbatim](/videos/rewriting-sqlite-from-scratch-yes-really/sections/33-final-thoughts-and-where-to-find-turso.md)

---

## Related on aaronfrancis.com

- [Production SQLite with Turso and libSQL](/videos/production-sqlite-with-turso-and-libsql) *(Video · 2024-06-14 · shared: sqlite, libsql, turso)*
- [Finding a brand for Database School](/newsletter/finding-a-brand-for-database-school) *(Newsletter · 2025-08-15 · shared: sqlite, glauber costa, turso)*
- [Vectors in SQLite! (with libSQL)](/videos/vectors-in-sqlite-with-libsql) *(Video · 2024-10-23 · shared: libsql, sqlite, turso)*
- [No social media before noon is working](/newsletter/no-social-media-before-noon-is-working) *(Newsletter · 2025-10-31 · shared: turso, sqlite)*
- [Teaching Databases, Writing PHP, and Independent Work with Aaron Francis](/podcast/teaching-databases-writing-php-and-independent-work-with-aaron-francis-a22e6b07) *(Podcast · 2024-08-27 · shared: sqlite, libsql)*

## Relevant Resources from Aaron Francis

- **[High Performance SQLite](https://databaseschool.com)** (overview on site: [/courses](/courses)): Comprehensive video course on running SQLite in production: WAL mode, concurrency, FTS5, strict tables, backups, and performance tuning.
- **[MySQL for Developers](https://databaseschool.com)** (overview on site: [/courses](/courses)): Full video course covering MySQL indexing, deferred joins, pagination, query plans, and schema design for application developers.

## Search aaronfrancis.com (2-Hop Static Keyword Index)

Pick the alphabetical shard matching any topic to find exact pages across all articles, newsletters, videos, talks, and podcast transcripts (every shard is < 40 KB):
[A-B](/llms/keywords/a-b.txt) · [C](/llms/keywords/c.txt) · [D-E](/llms/keywords/d-e.txt) · [F-G](/llms/keywords/f-g.txt) · [H-J](/llms/keywords/h-j.txt) · [K-L](/llms/keywords/k-l.txt) · [M-N](/llms/keywords/m-n.txt) · [O-P](/llms/keywords/o-p.txt) · [Q-R](/llms/keywords/q-r.txt) · [S](/llms/keywords/s.txt) · [T-Z](/llms/keywords/t-z.txt) · [Directory](/llms/keywords.txt) · [Site Map](/llms.txt)

Shards for this page's topics: `sqlite rewrite` ([S](/llms/keywords/s.txt)), `turso` ([T-Z](/llms/keywords/t-z.txt)), `deterministic simulation testing` ([D-E](/llms/keywords/d-e.txt)), `glauber costa` ([F-G](/llms/keywords/f-g.txt)).

## About Aaron Francis (Current Context)

Aaron Francis is VP of Marketing and Community at [Laravel](https://laravel.com), founder of [Try Hard Studios](https://tryhardstudios.com), creator of [Solo](https://soloterm.com), co-host of [Mostly Technical](/podcast), and author of [Mastering Postgres](/courses), [High Performance SQLite](/courses), [MySQL for Developers](/courses), and [Screencasting.com](/courses). Full bio: [/about](/about) · Current focus: [/now](/now).
