Topic

Database

Follow database news across PostgreSQL, MySQL, SQLite, Redis, MongoDB, query optimization, schema design, and operational lessons. Snapbyte.dev turns database discussions into ranked summaries for developers.

What this topic tracks

  • Database releases and ecosystem updates
  • Query optimization, indexing, and schema design
  • PostgreSQL, MySQL, SQLite, Redis, and MongoDB
  • Replication, migrations, and reliability
  • Production data architecture lessons

Database · 293 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.

20 stories

The infamous 20 year old MySQL Bug #11472 has been fixed.

bugs.mysql.com · 25 May

Database · MySQL · SQL

A persistent MySQL bug, identified in 2005, caused triggers to fail during cascading foreign key operations.

After 20 years of community discussion and controversy regarding database integrity, the issue has finally been resolved as part of WL#17024, enabling triggers on referenced tables during cascade events.

Tailscale Traces Database Corruption to 16y/o SQLite WAL-Reset Bug

tailscale.com · 12 Aug

Backend · Database · SQLite

Tailscale experienced significant uptime instability due to a 16-year-old 'WAL-Reset' bug in SQLite.

Triggered by Tailscale's non-standard, aggressive manual checkpointing, the bug caused silent data corruption. After months of forensic investigation and collaboration with SQLite maintainers, the issue was identified, patched, and verified, restoring reliability and hardening Tailscale's database infrastructure.

t8y2/dbx

github.com · 29 Sept

Artificial Intelligence · Database · SQL

DBX is a lightweight, open-source, cross-platform database client that consolidates 100+ databases and middleware in a roughly 25 MB application.

It combines desktop, Web, Docker, and CLI interfaces with an AI SQL assistant, MCP Server integration, schema/data tools, plugins, encryption, and safety controls—distinguished by broad coverage without runtime bloat.

Your executable is a SQLite database

fzakaria.com · 23 Aug

Database · Software Architecture · SQLite

SELF (Structured Executable & Linkable Format) is a prototype that replaces ELF with SQLite databases that can be chmod +x and executed.

It represents segments, symbols, relocations, and dependencies as queryable tables, enabling SQL-based tooling, dynamic linking, closures, and transactional modifications. Built with Nix, it is lossless but currently has startup, memory-mapping, and size overheads.

PostgreSQL 19 Released!

postgresql.org · 19 Nov

Backend · Database · PostgreSQL

PostgreSQL 19 was released on November 19, 2026, adding tools for less disruptive administration, distributed data, and application development.

`REPACK (CONCURRENTLY)` removes table bloat without blocking reads or writes, while `pg_plan_advice` stabilizes query plans. New features include standby “read-your-writes” consistency via `WAIT FOR LSN`, sequence replication, `INSERT ... ON CONFLICT DO SELECT`, JSON output from `COPY`, faster foreign-key checks, adaptive asynchronous I/O, server-side SNI, and default-disabled JIT.

Postgres 19 is late because so many more bugs are being found now

rhaas.blogspot.com · 30 Oct

Artificial Intelligence · Database · PostgreSQL

PostgreSQL 19 will likely be released in November or later because LLMs are uncovering far more bugs, delaying fixes and late feature reversions.

From April 8 to September 25, 2026, back-patched commits increased over 60% for the master branch’s prior-release work and over 74% for an older release, while humans still review AI-drafted fixes. The delay reflects quality control, but the project faces a long-term challenge: addressing decades of newly detectable defects while continuing innovation.

What ORMs have taught me: just learn SQL

wozniak.ca · 5 Jul

Database · PostgreSQL · SQL

The author argues that Object-Relational Mappers (ORMs) often cause more problems than they solve due to issues like attribute creep, complex foreign key joins, and the Object-Relational Impedance Mismatch.

Instead of relying on ORMs for query generation, the author advocates for mastering SQL and treating the database as an API-driven data type.

MySQL’s popularity as ranked by DB-Engines started to tank hard, a trend that will likely accelerate in 2026.

optimizedbyotto.com · 11 Jan

Database · MySQL · Open Source

The article strongly advocates for migrating from MySQL to MariaDB due to the deteriorating state of the former under Oracle's stewardship.

By 2026, MySQL showed significant declines in git commits, limited bug tracking transparency, and a shift toward closed-door development. The author highlights technical regressions, performance degradation in newer versions, and a lack of new features in long-term support releases like MySQL 8.4. In contrast, MariaDB maintains a transparent, community-driven development model. Security concerns are also emphasized, noting that MySQL published significantly more CVEs with less disclosure compared to MariaDB. For users seeking to maintain software sovereignty and better performance, the author recommends MariaDB as a compatible, truly open-source alternative that provides an easy migration path for classic LAMP stacks and custom applications.

Jepsen: ParticleDB 1.1.4

jepsen.io · 31 Oct

Backend · Database · Testing

Jepsen found 96 issues while testing ParticleDB 1.1.4–1.1.18.11.rc-22, covering performance, PostgreSQL compatibility, predicates, constraints, joins, state corruption, transactions, and concurrency.

Most occurred on healthy single nodes, without fault injection, and included crashes, deadlocks, lost writes, inconsistent reads, corrupted or undeletable rows, and Snapshot Isolation violations. Documentation also ambiguously described transaction and durability guarantees, while advertised ACID and formal-proof claims were unsupported by available evidence. Many defects appeared fixed incrementally, but replication was not tested.

supabase/supabase

github.com · 21 Oct

Backend · Database · PostgreSQL

Supabase is a Postgres development platform that provides web, mobile, and AI applications with a dedicated database and Firebase-like developer experience built from open source tools.

It combines hosted or self-hosted Postgres with authentication, authorization, auto-generated REST and GraphQL APIs, Realtime subscriptions, database and Edge Functions, file Storage, AI vector/embeddings tooling, and a Dashboard. Its architecture integrates PostgREST, GoTrue, Realtime, pg_graphql, postgres-meta, and Envoy, with modular clients for multiple languages.

A Preview of DuckDB v2.0

duckdb.org · 17 Aug

Database · Distributed Systems · Performance

DuckDB v2.0 “Cyanoptera,” arriving this fall, expands DuckDB from an in-process database into a server-capable analytical platform.

Key updates include Quack/CONNECT, first-class VARIANT, triggers, a new SQL parser and storage format, asynchronous I/O, major query and partition-pruning improvements, native timezone support, and a stable C API for portable, signed extensions.

tl;dv (Too Lazy; Didn't Validate): 181,874 Meetings Left Wide Open

bobdahacker.com · 4 Aug

Artificial Intelligence · Cybersecurity · Database

A major security vulnerability in the meeting recording platform tl;dv allows any authenticated user to access metadata for all meetings across the entire platform due to a lack of Firestore tenant isolation.

Additionally, an internal employee application leaks sensitive personnel information without authentication. Despite disclosures starting in January 2026, the issues remain unaddressed by the company.

SQLite is all you need for durable workflows

obeli.sk · 29 May

Database · PostgreSQL · SQLite

The article proposes using SQLite instead of Postgres for durable workflow execution, particularly for AI agents.

By utilizing a local database file combined with Litestream for S3 backups, developers can achieve durable state management without complex infrastructure. This approach offers cost-effective, simple, and fault-isolated solutions, though Postgres remains better for high-availability requirements.

A hacker is making a list of vibecoded apps, 198 scanned 196 with vulnerabilities

firehound.covertlabs.io · 1 Jan

Cybersecurity · Database · iOS

A recent security scan of 198 iOS apps revealed that 196 of them have exposed data, highlighting significant vulnerabilities in the mobile ecosystem.

Major applications including Chat & Ask AI, GenZArt, and YPT - Study Group account for hundreds of millions of exposed records and files. This public registry showcases the scale of data exposure across various categories ranging from AI tools to educational games.

We replaced Redis with MySQL for inventory reservations — and it scaled

shopify.engineering · 21 May

Backend · Database · MySQL

Shopify replaced its Redis-based inventory reservation system with a MySQL-powered solution using SKIP LOCKED.

By optimizing index design, transactional isolation, and connection management, they eliminated overselling risks while maintaining high-throughput concurrency during peak sales. The transition leveraged shadow mode monitoring to ensure scalability and ACID compliance across critical checkout operations.

Prefer Strict Tables in SQLite

evanhahn.com · 11 Jul

Database · SQL · SQLite

SQLite strict tables, introduced in version 3.37.0, enforce rigid data typing by preventing invalid type insertions and bogus column declarations.

While strict tables add validation overhead and require table recreation for migration, they improve data integrity and prevent subtle bugs caused by SQLite's default flexible typing, despite the official advocacy for flexible schemas.

GitHub Actions down again today

githubstatus.com · 26 May

Database · Distributed Systems · Performance

A database migration caused significant replication lag on May 12, 2026, leading to delayed Code Scanning, notifications, and webhooks processing.

The issue, which lasted several hours, was resolved by scaling up processing workers. Future measures include creating dedicated worker pools for high-usage queues to maintain system stability and performance.

Training a 4B model to produce 81% faster query plans than Postgres

rohanbansal.com · 16 Sept

Database · PostgreSQL · SQL

Rohan Bansal trained a 4B open-weights model with supervised fine-tuning and agentic reinforcement learning to improve PostgreSQL query plans through pg_hint_plan.

Careful cache-noise control and custom rewards were essential. On the 113-query JOB benchmark, best-of-15 selection achieved 1.81× geometric-mean speedup and a 44.7% latency reduction versus PostgreSQL defaults, demonstrating niche domain training’s potential.

Where it came fromHacker NewsRedditLobstersGitHubCreate a database digest for storage, query, and production data-system stories that matter to your work.Build your digest