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

TIL: Apple Broke Time Machine Again on Tahoe

taoofmac.com · 1 Feb

Database · Linux · macOS

The author details a systematic failure of macOS Time Machine backups targeting Synology NAS devices following recent Apple software updates.

Investigations revealed that Apple changed SMB protocol defaults, specifically regarding mandatory signing and directory caching, which broke compatibility with many NAS configurations. The post provides a technical walkthrough for fixing these issues by editing the local nsmb.conf file on macOS and adjusting SMB settings within the Synology DSM interface. Furthermore, the author explores a more resilient alternative using a Docker-based Samba implementation (mbentley/timemachine) on a Proxmox ZFS environment to bypass proprietary software limitations. The narrative criticizes Apple for its lack of communication regarding breaking changes in critical backup infrastructure and ongoing bugs in its device restoration processes.

Pandas Should Go Extinct

eddie.codes · 12 Sept

Data Science · Database · Performance

The post argues that Pandas’ memory use and sequential execution create a misleading “Pandas cliff,” pushing teams toward distributed systems prematurely.

Benchmarks show Polars and DuckDB processing 1 billion rows dramatically faster, with lower memory usage, through lazy, parallel, chunk-wise execution. Apache Arrow enables low-friction interoperability, making these tools practical Medium Data alternatives.

The reverts will continue until morale improves

peter.eisentraut.org · 9 Oct

Database · PostgreSQL

PostgreSQL 19 reverted roughly 8–10 significant features after beta began, driven by a mix of code defects, extreme system complexity, LLM-assisted review uncovering long-tail edge cases, and reduced beta-period review while senior developers handled the Vulnpocalypse.

The release schedule limited time for fixes, while an experimental status for immature features is not yet available. PostgreSQL 19 remains strong, with REPACK CONCURRENTLY, logical replication of sequences, and planner hinting via pg_plan_advice; many reverted features may return, and PostgreSQL 20 already has partially ready work.

Planet Labs' open satellite feed

tech.marksblogg.com · 9 Sept

Database · SQL · Open Source

Planet Labs operates multiple satellite constellations, collecting daily global land imagery, including Pelican’s 426-band hyperspectral data.

Its open Disaster Data feed provides pre- and post-event imagery with STAC metadata. Using DuckDB, GDAL, QGIS, Parquet and GeoTIFF workflows, the analysis catalogs, mosaics, compresses and evaluates disaster imagery, including 24 Nepal flood scenes published as quickly as 1.4 hours after capture.

We gave terabytes of CI logs to an LLM

mendral.com · 27 Feb

Artificial Intelligence · Database · SQL

Mendral (YC W26) utilizes a SQL interface and ClickHouse to empower AI agents to investigate flaky CI tests.

By denormalizing 48 metadata columns per log line, they achieve 35:1 compression and millisecond query latency. This architecture allows agents to autonomously scan billions of log lines, identifying root causes across months of history in seconds.

Two Bits Are Better Than One: making bloom filters 2x more accurate

floedb.ai · 16 Feb

Algorithms · Database · SQL

Floe explains using bloom filters, probabilistic data structures that efficiently speed up SQL queries by filtering non-matching rows before decompression.

By implementing a fixed-size 256KB filter with two bits stored in a single uint32, they reduced false positive rates by 2x (11.7% to 5.7%) with negligible performance costs, significantly optimizing database join operations.

Software Internals Book Club

eatonphil.com · 12 May

Database · Distributed Systems · Education

A global email-based book club with over 2,500 members focuses on advanced technical literature like "Operating Systems: Three Easy Pieces."

The group facilitates asynchronous, text-based discussions moderated by expert leaders. Aimed at developers of all levels, the initiative promotes deep study of databases, distributed systems, and software performance through community collaboration.

The only scalable delete in Postgres is DROP TABLE

planetscale.com · 11 Jun

Database · PostgreSQL · SQL

In PostgreSQL, row-level DELETE operations create bloat by adding dead tuples and increasing vacuuming demand.

They do not immediately reclaim disk space. For large-scale data cleanup, scaling strategies favor DROP TABLE or TRUNCATE, as they efficiently release space at the OS level. Partitioning is recommended to transform bulk deletions into manageable, recurring table maintenance tasks.

5NF and Database Design

kb.databasedesignbook.com · 11 Apr

Database · Software Architecture · SQL

This article demystifies the fifth normal form (5NF) by advocating for a logical design approach rather than traditional, confusing decomposition methods.

By starting with business requirements and clear logical models—specifically the AB-BC-AC triangle and the ABC+D star patterns—developers can create fully normalized database schemas without manual splitting or artificial constraints.

Does anyone run Postgres without PgBouncer?

brandur.org · 12 Aug

Backend · Database · Performance

After a decade, Postgres still struggles with many connections, making PgBouncer or equivalent poolers essential.

Nearly all major managed Postgres providers now bundle connection pooling, but inconsistent implementations, configurations, and caveats create unnecessary operational work. The ideal would be a standardized, built-in pooler exposed through one database URL and port, as in MySQL and MongoDB.

Show HN: Postgres extension for BM25 relevance-ranked full-text search

github.com · 31 Mar

Database · PostgreSQL · SQL

pg_textsearch is a high-performance PostgreSQL extension providing BM25 ranking for text search.

It features simple syntax, Block-Max WAND optimization for fast top-k queries, and parallel index builds. Designed for production, it supports PostgreSQL 17-18, partitioning, and configurable ranking parameters, making it a scalable alternative for textual information retrieval within the database.

Inside Hyperdrive: How we solved a rare Hyperdrive MySQL caching bug

blog.cloudflare.com · 14 Oct

Backend · Database · Distributed Systems · MySQL · Software Architecture

Cloudflare made Hyperdrive’s MySQL support generally available after fixing reliability issues, including a rare caching bug that caused empty query results or hangs.

Hyperdrive’s Client and Endpoint could share a CDN cache while encoding MySQL responses for different negotiated capabilities, especially CLIENT_DEPRECATE_EOF; either node could read bytes in the other’s format. Cloudflare fixed this by storing canonical result bytes encoded with Hyperdrive’s capabilities, eliminating the empty-row issue and raising Client connection success to 99.99%. It also corrected UTF-8 handling with utf8mb4.

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.

Postgres 19 delayed after AI reviewers find more bugs than humans can fix

theregister.com · 16 Oct

Backend · Database · PostgreSQL

PostgreSQL 19 has been delayed until around November 19, with eight to 10 significant features postponed to PostgreSQL 20 after LLM-assisted code reviews exposed architectural defects and a long tail of edge-case bugs that developers could not resolve before release.

SQL Property Graph Queries (SQL/PGQ) is among the removed features. PostgreSQL 19 will still include REPACK CONCURRENTLY, and Peter Eisentraut says the release should be robust after additional scrutiny.

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.

Chess in SQL

dbpro.app · 29 Mar

Database · Programming Languages · SQL

This article demonstrates how to render and play a chess game using only SQL.

By utilizing a table to store piece positions, conditional aggregation to pivot data into an 8x8 grid, and basic CRUD operations to execute turns, the author shows that SQL is capable of complex game visualization and logic without frontend frameworks or JavaScript.

Postgres data stored in Parquet on S3: LTAP architecture explained

databricks.com · 30 Jun

Database · Distributed Systems · PostgreSQL

Reynold Xin discusses the Lakebase architecture, which redefines OLTP databases by decoupling compute from storage.

By using distributed services like SafeKeeper and PageServer to externalize WAL and data files, Lakebase achieves elastic scaling, durability, and serverless flexibility. Furthermore, the LTAP approach enables real-time analytics on transactional data using open columnar formats like Parquet, eliminating the need for ETL or CDC.

TurboKV: Insanely fast Rust key-value store

github.com · 29 Aug

Database · Performance · Rust

TurboKV 0.6 is an async embedded key-value database for Rust, offering atomic batches, ordered and streaming scans, configurable WAL durability, compression, caching, and background compaction.

Its fast, durable, and paranoid modes trade throughput for persistence guarantees. Benchmarks show strong performance, especially with batching, while AES-enabled builds require architecture-specific RUSTFLAGS.

How we made geo joins 400× faster with H3 indexes

floedb.ai · 5 Feb

Big Data · Database · SQL

Geospatial joins, which use spatial predicates like ST_Intersects, often suffer from performance issues at scale due to their quadratic complexity.

While conventional joins utilize efficient hash partitioning, spatial predicates lack a clean join key, forcing expensive row-by-row comparisons. Floe addresses this by automatically rewriting queries to utilize H3 indexes, a hexagonal hierarchical tiling system that converts complex geometries into big-integer cell IDs. By representing shapes as sets of H3 cells, the system performs a fast integer equi-join as a pre-filter, followed by an exact spatial recheck to eliminate false positives. This method effectively reduces candidate pairs by up to 99 percent. Benchmark results show that optimizing H3 resolution can lead to speedups of nearly 400x compared to baseline queries, transforming expensive spatial operations into efficient parallel hash joins.

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