Topic

SQLite

Explore SQLite patterns covering embedded databases, serverless usage, and mobile data storage. Our digest summarizes database connections, query optimization, and modeling from developer communities.

What this topic tracks

  • Database releases and ecosystem updates
  • Query, indexing, and modeling practices
  • Operational lessons from production systems

SQLite · 36 stories

Recent stories

Each story's summary, with the places it was discussed.

Summaries are written by AI from the linked sources. Open the source for full context.

16 stories

Supabase is acquiring Turso

supabase.com · 2 Oct

Database · SQLite · AI Agents

Supabase is acquiring Turso to build database infrastructure for the rapid growth of agent-generated software.

Turso’s Rust-based SQLite architecture can provision and suspend millions of databases on demand, complementing Supabase’s Postgres path from prototypes to production. Turso will continue operating, remain open source, and lead Supabase’s agentic infrastructure effort.

Under the hood, off the hot path: how D1 scales to millions of databases

blog.cloudflare.com · 13 Oct

Backend · Database · Distributed Systems · Software Architecture · SQLite

Cloudflare scaled D1, its managed serverless SQLite database, beyond 5.5 million databases by separating control-plane work from hot-path queries.

Each database uses a SQLite Durable Object; Workers KV provides edge routing metadata, while Hyperdrive accesses cached Postgres metadata and replicas. Queries avoid centralized components, and heartbeats repair inconsistent state. Queues and pre-aggregated Postgres tables handle storage limits, while ClickHouse and Quicksilver support analytics and row limits, enabling millions of databases and hundreds of thousands active at once.

SQLite in Production: Lessons from Running a Store on a Single File

ultrathink.art · 3 Apr

Database · Rails · SQLite

Running a Rails 8 e-commerce site on SQLite offers simplicity but risks data loss during rapid deployments.

Using shared Docker volumes with overlapping containers caused write contention, leading to lost transactions. Success requires disciplined deployment intervals, awareness of filesystem-level locking, and utilizing tools like sqlite_sequence for auditing. SQLite remains effective for single-server, read-heavy workloads within these limitations.

Lobste.rs is now running on SQLite

lobste.rs · 13 Jul

Backend · Database · SQLite

Lobsters successfully migrated its production database from MariaDB to SQLite, achieving lower CPU and memory usage, reduced costs, and improved site performance.

Despite challenges like failed deploys and performance bugs, the team optimized queries and utilized SQLite features like WAL mode. This transition highlights SQLite's viability for medium-scale web applications while reducing architectural complexity.

Modern SQLite: Features You Didn't Know It Had

slicker.me · 2 Apr

Database · SQL · SQLite

Modern SQLite provides powerful features like native JSON support, FTS5 for full-text search, window functions for analytics, and STRICT tables for schema enforcement.

With generated columns, Write-Ahead Logging (WAL) for concurrency, and CTEs, SQLite has evolved into a robust, high-performance database suitable for complex applications without sacrificing its characteristic simplicity and reliability.

How to corrupt an SQLite database file

sqlite.org · 26 Jun

Cybersecurity · Database · SQLite

SQLite is highly resilient to corruption, handling crashes and power failures automatically.

However, it is not immune to issues like file system bugs, improper file handling, hardware failures, or application-level memory corruption. While testing is extensive, developers should follow best practices, such as native locking and WAL mode, to maintain database integrity.

Breaking the WAL

antithesis.com · 12 Aug

Database · SQLite · AI Agents

Carl leveraged Claude and Antithesis to identify and verify a complex data race bug in the SQLite WAL subsystem.

By deploying automated testing agents, he reproduced the 'WAL-Reset' bug within minutes, demonstrating that AI-driven testing tools can drastically reduce the time and effort required to find and fix rare, critical bugs that otherwise plague production systems for months.

Many Small Queries Are Efficient in SQLite

sqlite.org · 31 May

Database · Performance · SQLite

The common perception that executing a high volume of SQL statements (such as 200 per page) is a sign of poor design is challenged when using SQLite.

While traditional client/server databases like MySQL or PostgreSQL suffer from latency due to network round-trips for every query, SQLite operates within the same process address space as the application. This architectural difference reduces query latency to simple function calls, making hundreds of small queries highly efficient. The Fossil version control system, which powers the SQLite website, utilizes this approach to maintain clean code and separation of responsibilities between data retrieval and display logic without sacrificing performance, often rendering complex dynamic pages in under 25 milliseconds.

Stinkpot: SQLite-backed shell history

tangled.org · 24 Jul

Shell · SQLite · TUI

stinkpot is a lightweight, sqlite-backed shell history searcher for bash, serving as a minimalist alternative to atuin.

Developed in Go, it features a simple TUI for navigation, session-agnostic history management, and straightforward installation for bash users, including home-manager support. It prioritizes performance with optimized database indexing for faster command lookups.

When DEV.to Stats Aren't Enough: Building My Own Memory

dev.to · 18 Jan

Data Science · Python · SQLite

The author developed a custom analytics tool using Python and SQLite to monitor DEV.to article performance beyond basic metrics.

By collecting data every few hours, the tool reveals temporal patterns, true reading times, and the depth of engagement across different categories like technical expertise and personal exploration. This project highlights that personal reflections often foster more meaningful conversations than high-traffic technical posts, and that views alone are a shallow indicator of actual readership.

SQLite 3.53.0

sqlite.org · 9 Apr

Database · SQL · SQLite

SQLite 3.53.0 introduces the Query Result Formatter (QRF) library to enhance CLI output, adds support for modifying constraints in ALTER TABLE, improves the query planner, and introduces new JSON functions.

It also provides new C APIs and optimizations while addressing critical reliability fixes like the WAL-reset corruption bug.

Why ALTER TABLE is such a problem for SQLite

sqlite.org · 13 Nov

Database · SQL · SQLite

SQLite provides limited support for the ALTER TABLE command, primarily allowing table and column renames, and the addition or deletion of columns.

While simple renames and additions are fast because they only modify schema text, certain operations like adding constraints or dropping columns require rewriting table data. For complex schema changes not directly supported, a 12-step manual procedure involving temporary tables is recommended to maintain database integrity and cross-version compatibility.

SQLite WAL-reset database corruption bug

sqlite.org · 6 Mar

Database · Software Architecture · SQLite

This technical overview explains SQLite's Write-Ahead Log (WAL) mode, detailing its mechanism for atomic commits and rollbacks.

It covers performance trade-offs between readers and writers, the role of checkpointing, and shared-memory requirements. Additionally, it addresses operational constraints, recovery processes, and a specific historical data race bug affecting database integrity.

Detecting Full Table Scans With SQLite

tenderlovemaking.com · 15 Jul

Database · SQL · SQLite

This article explores how to detect SQLite full table scans programmatically using statement statistics API.

By monitoring the fullscan_steps metric, developers can identify inefficient queries during testing and development, allowing for performance optimizations like index creation, which helps improve database reliability and efficiency in applications like those built with Ruby on Rails.

How we used Quint to find over 10 bugs in SQLite while hardening Turso

turso.tech · 18 May

Software Architecture · SQLite · Testing

Turso continues to push reliability by integrating formal methods with Quint.

By modeling the SQLite C API, they successfully uncovered over 10 bugs in SQLite itself. This approach complements their existing deterministic simulation testing, proving that even highly mature software like SQLite can benefit from advanced formal verification techniques to ensure robustness.

Here's how I host my own AIM server

veronicaexplains.net · 12 Jul

Linux · SQLite

This guide covers hosting a custom AIM server using Open OSCAR Server on a Debian machine.

It details the process of configuring the server for LAN or WAN access, setting up authentication, managing user accounts via the API, and ensuring data persists through systemd services and backups.

Where it came fromHacker NewsLobstersCloudflare BlogDev.toCreate a Snapbyte.dev digest and choose SQLite as one of your topics.Build your digest