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 · 300 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

Why you shouldn't do application-level sharding

planetscale.com · 23 Nov

Backend · Database · Distributed Systems · Software Architecture

Application-level sharding turns database routing into a long-term application responsibility rather than a simple scaling change.

As a marketplace grows, resharding risks lost writes; missing shard keys require fan-out, IDs, or lookup tables; hot customers need exceptions; cross-shard transactions require sagas or two-phase commit; and schema changes, failover, and connection pools multiply operational work. A sharding layer such as Vitess or Neki handles routing and operations, though applications still own cross-shard atomic writes and shard-key choices.

Introducing Insights Agent

planetscale.com · 17 Nov

Artificial Intelligence · Database · Performance · AI Agents

PlanetScale introduced Insights Agent, built-in agents that use application code, database schemas, and Query Insights data in temporary sandboxes to investigate and propose database-performance fixes.

Scheduled or on-demand schema-recommendation and slow-query runs can create pull requests, using codebase conventions for frameworks or SQL; Vitess also receives deploy requests. Changes are never merged or deployed automatically. Runs are token-based, chargeable on completion, support spend limits, use zero-retention OpenAI and Anthropic models, and are available on all plans, engines, and hosts.

How we migrate TBs from Heroku without logical replication

planetscale.com · 11 Nov

Backend · Database · DevOps · PostgreSQL

PlanetScale built the open-source Heroku Migrator to move standard Heroku Postgres databases with minimal downtime despite lacking logical replication.

Using Bucardo trigger-based replication, it copies the schema and data, tracks changes, verifies consistency, and enables a controlled cutover. The latest version uses staged index rebuilding, connection keepalives, and txntime indexes to prevent restarts, network stalls, and replication backlogs, increasing copy speed from roughly 60 to 300 GB/h. It also supports Postgres 18 and pg_partman.

What was the turning point for Postgres?

planetscale.com · 27 Oct

Backend · Database · PostgreSQL · History

Postgres became today’s default through a sequence of moments rather than one decisive event, with Heroku’s 2011 decision to make hosted Postgres effortless arguably the pivotal catalyst.

Its open governance and extensibility ensured survival; JSONB preserved relevance against MongoDB, while MySQL’s Oracle acquisition weakened its momentum. Postgres overtook MySQL in Stack Overflow’s 2023 survey (45.6% vs. 41.1%) and reached 86% of 32,955 LLM database recommendations, reinforced by cloud availability and pgvector.

What gets TOASTed in Postgres

planetscale.com · 12 Oct

Backend · Database · Performance · PostgreSQL

Postgres TOAST activates when a row exceeds 2,032 bytes: it compresses variable-length values or moves them into a `pg_toast` table in chunks.

A 2,001-character `text` value therefore compresses with LZ4 while 2,000 characters remain uncompressed. Postgres 19 makes LZ4 the default where supported. LZ4 is generally the best choice for speed, while pglz can produce smaller repetitive JSON and better preview reads; `EXTERNAL` suits already-compressed data and random byte-range access.

TIN v1.0.6: 2-3x faster, with support for stemming

planetscale.com · 8 Oct

Backend · Database · Performance · PostgreSQL

TIN v1.0.6 adds language-specific stemming for 18 languages, supports heap-attribute tiebreakers in ranked top-k queries, and improves top-k performance without changing the index format.

Benchmarks on 150 million Stack Exchange documents show TIN outperforming ParadeDB across conjunction, disjunction, phrase, and mixed queries: default scoring delivers 3.1–5.0x higher throughput and 2.7–4.4x lower p99 latency on x86-64. Existing indexes need no rebuild for the performance update; stemming requires rebuilding.

Durable queues, streams, pub/sub, and a cron scheduler – inside your SQLite file

honker.dev · 30 Apr

Backend · Database · SQLite

honker is an SQLite extension providing Postgres-style LISTEN/NOTIFY, task queues, and event streams directly within the database file.

By utilizing PRAGMA data_version for efficient event notification, it offers ACID-compliant transactions without the need for external brokers like Redis, significantly reducing operational complexity for applications using SQLite as a primary datastore.

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.

SQLite in Production: Optimizing WAL Mode, Concurrency, and VFS Layers

micrologics.org · 29 Jul

Backend · Database · Performance

SQLite is a high-performance, low-latency alternative to traditional production databases when properly configured.

By enabling WAL mode, optimizing memory-mapped I/O, managing concurrency with busy timeouts and immediate transactions, and utilizing custom VFS layers for durability, it can handle significant production workloads efficiently on modern infrastructure.

Tin: full-text search for Postgres

planetscale.com · 16 Sept

Database · Performance · SQL

TIN, a GA full-text search extension for Postgres, supports Boolean, phrase, span, fuzzy, wildcard, regex, folding, COUNT(*) and BM25 ranking while handling updates, MVCC, replication, backups, and joins.

Benchmarks show at least 8× higher throughput than alternatives. Its speed comes from using Postgres ctid identifiers, vectorized bitmaps, and efficient segment merging.

Redis 8.8: New array data structure, rate limiter, performance improvements

redis.io · 3 Jun

Big Data · Database · Performance

Redis 8.8 is now available, featuring a new 'array' data structure, a window counter rate limiter, and message NACKing for Streams.

It delivers significant performance gains across various operations and adds subkey notifications for hashes, multiple time series aggregators, explicit JSON floating-point storage control, and a new COUNT aggregator for sorted sets.

Show HN: OSS AI agent that indexes and searches the Epstein files

epstein.trynia.ai · 1 Jan

Database · News · Law

This platform provides a comprehensive and searchable archive of documents related to the Jeffrey Epstein case, including indexed emails, private messages, flight logs, and various court records.

Powered by Nia, the repository allows users to navigate through vast amounts of complex data to uncover connections and details previously hidden in disparate legal filings. The project aims to improve transparency and accessibility for researchers, journalists, and the public by organizing thousands of pages of documentary evidence into a user-friendly interface. By utilizing modern indexing technologies, the archive ensures that critical information regarding legal testimonies and corporate communications remains preserved and easily retrievable for historical and forensic analysis.

ClickHouse acquires Langfuse

langfuse.com · 16 Jan

Database · Generative AI · Open Source

ClickHouse has officially acquired Langfuse, a leading LLM engineering platform.

This strategic move aims to accelerate Langfuse's mission of providing robust tracing and evaluation tools for AI developers. Despite the acquisition, Langfuse will remain open source and self-hostable, with no immediate changes to its licensing or existing cloud infrastructure. Use of ClickHouse as a core data layer in Langfuse v3 has already significantly improved performance and high-throughput ingestion. This partnership allows the team to leverage ClickHouse's deep infrastructure expertise and resources to enhance enterprise-grade compliance, security, and reliability. Moving forward, the Langfuse team will join ClickHouse to continue focusing on production monitoring, shortened iteration loops for agent systems, and scaling capabilities for large-scale enterprise deployments.

Can GROUP BY still be optimized after all these years?

pivotlake.io · 3 Nov

Algorithms · Big Data · Database · Performance · SQL

Pivot found a significant optimization for top-K GROUP BY queries, such as finding the 10 items with the most orders.

Conventional analytical databases aggregate rows into private per-thread hash tables, merge partition results, and concatenate them, even though only a few partitions may affect the final answer; with 4,096 partitions, at least 4,086 are irrelevant to a top-10 result. The proposed approach tracks partition-level aggregate information, potentially using Bloom filters or counters, to prune unnecessary work.

Show HN: Self-host Reddit – 2.38B posts, works offline, yours forever

github.com · 28 Dec

Database · Python · Open Source

Redd-Archiver is a powerful tool designed to transform large-scale compressed data dumps from platforms like Reddit, Voat, and Ruqqus into browsable HTML archives.

With a multi-platform architecture, it supports over 2.38 billion posts and uses PostgreSQL for high-performance full-text search and indexing. The tool offers flexible deployment options, ranging from simple offline browsing to Docker-orchestrated production environments with HTTPS or Tor integration. It is specifically optimized for efficiency, featuring a mobile-first design, keyboard accessibility, and low memory consumption regardless of dataset size. Additionally, it provides a REST API and MCP server for AI integration.

Show HN: Mason – A lightweight Postgres read-replica, built on columnar storage

masondata.ai · 24 Nov

Backend · Database · JavaScript · Performance · PostgreSQL

Mason is an open-source, lightweight Postgres read replica that syncs selected tables and columns into DuckDB’s columnar engine while preserving Postgres SQL behavior.

A single Node.js process supports on-demand, polling, or logical-replication sync and rewrites queries for analytical workloads. Benchmarks show up to 467× faster count queries and 50× faster joins, while primary-key lookups are 2.8–6× slower. Mason also provides RBAC, row-level security, generated tables, monitoring, and MCP support for AI agents.

Do we still have to denormalize? Have your schema and search it too

paradedb.com · 13 Nov

Backend · Database · Performance · PostgreSQL · Software Architecture

ParadeDB enables fast search joins over normalized Postgres schemas, removing much of the need to denormalize into Elasticsearch.

In a StackOverflow benchmark, its columnar indexes and DataFusion executor use Rank Join, selective late materialization, tuple tagging, and index co-partitioning. They reduce a natural three-table Top-K query from about 118,000 ms in vanilla Postgres to 100–600 ms, and a facet aggregate from 35.3 seconds to 422 ms, while retaining transactional consistency and standard SQL.

Why DuckDB 2.0 is faster

motherduck.com · 10 Oct

Big Data · Database · Performance

DuckDB 2.0’s async I/O substantially accelerates unchanged queries over AWS S3 by overlapping downloads with Parquet decoding.

On an M5 laptop, a query counting vote types in a 2.2 GB, 228-million-row Parquet file took 18.8 seconds in DuckDB 1.5.5 and 7.7 seconds in DuckDB 2.0 alpha. The file’s 2,268 row groups are prefetched by dedicated download threads while workers decode buffered data, keeping network and CPU active simultaneously. Results depend on network conditions.

Postgres transactions are a distributed systems superpower

dbos.dev · 2 Jul

Database · PostgreSQL · SQL

Co-locating workflow state within the same Postgres database as application data enables atomic updates.

By bundling database changes and workflow checkpoints into single transactions, developers can guarantee exactly-once execution and simplify complex patterns like idempotency and outbox messaging, ultimately enhancing reliability and reducing the overhead typically found in distributed workflow systems.

Looking Ahead to Postgres 19

snowflake.com · 30 Jun

Database · PostgreSQL · SQL

Postgres 19, currently in beta, introduces significant improvements including native REPACK CONCURRENTLY, partition merging and splitting, and enhanced logical replication.

New features like SQL property graph queries and SQL syntax upgrades improve developer productivity, while autovacuum and planner enhancements boost database maintenance and performance. These updates strengthen Postgres as a versatile and manageable production-ready system.

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