Catalogue / searchcode-2025-sqlite-database

searchcode.com replaced MySQL with a single 6.4 TB SQLite file on a compressed BTRFS partition, on one server

searchcode.com, 2025. Source code search engine storage layer.

Organisation
searchcode.com
Evidence
Reported from production
Source
searchcode.com’s SQLite database is probably 6 terabytes bigger than yours

Ben E. C. Boyter's blog, published 2025-02-16

Records

Decision#d1

Move the storage layer from MySQL to SQLite embedded in the application binary

Decision#d2

Compress the database at the filesystem level with BTRFS and zstd instead of inside SQLite

Decision#d3

Replace the single server with a larger dedicated one during the database migration

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.