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

Statistics that live in your SQL

kolistat.com · 22 Jun

Data Science · Database · SQL

the-stats-duck v0.6.0, an open-source DuckDB extension, enables advanced statistical analysis directly within SQL.

New features include meta() for data profiling, lm() for linear regression, bootstrap() for resampling, expanded plotting capabilities, and ten new statistical distributions. Performance for reading SAS, SPSS, and Stata files is significantly improved, offering a powerful, portable statistics engine.

Why the KeePass format should be based on SQLite

mketab.org · 24 Feb

Cybersecurity · Database · Encryption

The article argues for transitioning the KeePass KDBX file format from XML to an SQLite-based structure using SQLCipher.

It highlights issues with brittle schemas, storage inefficiencies, and centralized governance. Proponents suggest SQLite would improve performance, enable delta syncs, and facilitate a more democratic development process among community forks.

Postgres Postmaster does not scale

recall.ai · 4 Feb

Database · Distributed Systems · PostgreSQL

Recall.ai, a platform for recording and processing millions of virtual meetings, encountered a rare scaling bottleneck within PostgreSQL.

Due to the highly synchronized nature of meetings starting on the hour, their EC2 infrastructure faced extreme traffic bursts, leading to connection delays of up to 15 seconds. Investigation revealed that the PostgreSQL postmaster process operates on a single-threaded main loop responsible for spawning and reaping backends. During high connection churn or heavy background worker activity, this loop saturates a single CPU core, delaying new connections. The team mitigated this by enabling Linux huge pages to reduce 'fork' overhead, introducing jitter to stagger EC2 connection times, and limited parallel query bursts. The findings highlight that the primary bottleneck in PostgreSQL scaling is often the single-threaded nature of the postmaster rather than general resource availability.

Remove pgrust: the entry is cheating

github.com · 23 Oct

Database · Performance

The ClickBench `pgrust` entry should be removed because it is tuned specifically for the 43 benchmark queries and its hot runs replay cached answers, violating benchmark rules.

Its release binary embeds hand-written kernels and metadata shortcuts for individual queries, refuses many small query variations, and supports no general execution path for the columnar table. Although all 43 answers are correct, measured performance reflects a benchmark-specific lookup and cache rather than database execution.

Rows vs. Columns: How different are they, really?

spiraldb.com · 11 Nov

Database · Performance

Row stores and column stores are logically equivalent but physically optimized for different workloads.

Row stores such as Postgres and MySQL keep each record together, making single-record reads and writes efficient for OLTP. Column stores such as DuckDB and ClickHouse group values by field, reducing I/O for analytics: reading `duration_min` can require 4 MB instead of 48 MB for one million rides. Columnar layouts also enable vectorized execution, SIMD, and lightweight compression, but make individual record access and updates more expensive.

Tracking Costco gas prices

jack.bio · 21 Aug

Database · Python · REST API

An engineer built a nationwide Costco gas-price tracker by querying undocumented Costco endpoints, sweeping a coordinate grid, deduplicating roughly 600 warehouses, and storing readings in TimescaleDB.

A Next.js app exposes historical data. Across 155 days and 38,101 price changes, cuts outnumbered hikes, but prices still followed Strait of Hormuz-driven market pressure, varying sharply by state.

Lakebase architecture delivers faster Postgres writes

databricks.com · 7 May

Cloud Computing · Database · PostgreSQL

The authors explain how decoupling compute and storage in managed Postgres, specifically through a 'lakebase' architecture, allows for offloading Full Page Writes (FPW).

By moving image generation to the storage layer, they eliminated a major performance bottleneck, resulting in 5x higher write throughput, 50% lower read latency, and 94% less WAL traffic without requiring restarts.

PgQue: Zero-Bloat Postgres Queue

github.com · 13 Apr

Database · PostgreSQL · SQL

PgQue is a zero-bloat, SQL-first event queue for PostgreSQL 14+.

By using snapshot-based batching and TRUNCATE-based rotation instead of row-level deletions, it avoids index bloat and VACUUM pressure. It supports event-driven fan-out, works on managed providers without extensions or sidecars, and offers an ACID-compliant alternative to traditional task queues like RabbitMQ.

How Atlan Moved Its Data Platform from Spark and StarRocks to DuckDB on S3

duckdb.org · 4 Dec

Big Data · Database · Software Architecture

Atlan moved its data platform from Apache Spark and StarRocks to DuckDB and object storage, handling analytical and operational workloads.

DuckDB now runs in-process in Python workers on Kubernetes and Temporal, reading Parquet and Apache Iceberg tables from Amazon S3, processing hundreds of millions daily and billions on peak days. A DuckDB service on ephemeral compute replaced StarRocks, cutting costs about 40%. Atlan also replaced Spark-related failures and contributes caching, spill-to-disk, and JSON improvements to DuckDB 2.0.

DuckDB Scales and DuckDB in Amazon Athena

duckdb.org · 1 Dec

AWS · Big Data · Database

DuckLabs announced at AWS re:Invent that DuckDB is now available as a managed service in Amazon Athena, currently in Preview with general availability planned for 2027.

DuckDB Scales, initially offered in Amazon Athena, enables horizontal scaling for workloads exceeding 100 TB, with an open-source release planned for the first half of 2027. DuckLabs is also developing Athena and Redshift extensions for DuckDB, available through the AWS service repository.

How Atlan Moved Its Data Platform from Spark and StarRocks to DuckDB on S3

duckdb.org · 1 Dec

Big Data · Database · Software Architecture

Atlan moved its data platform from Spark and StarRocks to DuckDB running on Parquet and Apache Iceberg in Amazon S3.

In-process DuckDB pipelines on Kubernetes and Temporal process hundreds of millions to billions of metadata rows without clusters, improving speed and reducing costs. A DuckDB service on ephemeral compute replaced StarRocks at about 40% lower cost, while DuckDB also powers Atlan’s AI registry and is replacing ClickHouse. Atlan contributed spill-to-disk, caching, and JSON features to DuckDB 2.0.

I Don’t Want a Lesson in Computer Science!

duckdb.org · 25 Nov

Data Science · Database · SQL

Claude and DuckDB recreated a Star Trek: The Next Generation “Enterprise computer” by translating crew dialogue into SQL over a synthetic database modeled on ship records.

Using 11 scenes and the actual scripts, the system produced answers matching 40 of 49 dialogue results. Examples include detecting forged Stargazer logs, counting “Darmok” entries, narrowing substances through predicates, and correlating medical cases with visits. The downloadable enterprise_computer.duckdb database can be attached from the web and queried directly or used with Claude Code.

How JetBrains Built Cross-Database Queries into DataGrip with DuckDB

duckdb.org · 5 Nov

Database · Software Architecture · SQL

JetBrains embedded DuckDB in DataGrip to enable cross-database queries without building its own query engine.

DuckDB’s custom table functions connect its execution to DataGrip’s existing database functionality, allowing users to join PostgreSQL, MySQL, MongoDB, and other supported sources in one query without extra infrastructure. DataGrip exposes DuckDB’s SQL dialect and supports it as a first-class dialect. The initial implementation will evolve toward broader optimizations and file-based sources.

Benchmarking DuckDB v2.0-dev on NVIDIA Vera

duckdb.org · 16 Oct

Database · Hardware · Performance

DuckDB v2.0-dev was benchmarked on NVIDIA Vera using the complete TPC-H workload at scale factor 1,000.

On a single socket, Vera’s 88 Olympus cores achieved a median QphH@Size score of 3,073,292.99, 46% higher than a 96-core Intel Xeon 6 baseline at 2,109,782.19. The advantage was attributed to Vera’s memory bandwidth, low latency, and large caches. Both systems used 768 GB RAM, NVMe storage, and DuckDB 1.6.0.dev379.

Ok, but does it scale?

spacetimedb.com · 3 Sept

Database · Distributed Systems · SQL

Spacetime scales by separating compute, storage, and networking rather than imposing distributed coordination on every transaction.

Its single-threaded databases deliver high performance under contention, while sharding, replication, tiered storage, read replicas, inter-database communication, and future partitioning scale parallel workloads. The approach preserves a fast local path and charges coordination costs only when workloads require them.

Massively Parallel Postgres Backups

planetscale.com · 31 Jul

Database · MySQL · PostgreSQL

PlanetScale optimizes database backups for sharded Postgres and MySQL environments using massive parallelism.

By spinning up temporary nodes per shard to restore backups from object storage and replaying WAL or binary logs, they achieve high-speed, consistent backups with minimal production impact. This infrastructure supports scaling, resizing, and rapid node replacement for petabyte-scale databases.

Making Postgres queues scale

dbos.dev · 30 Jul

Database · PostgreSQL · SQL

Conventional wisdom suggests Postgres cannot scale as a queue, but with optimizations, it can reach 30K executions per second.

Key strategies include using SKIP LOCKED to reduce contention, adjusting transaction isolation levels to avoid serialization failures, and creating selective, partial indexes to minimize CPU overhead and autovacuum impact.

Guide to data tools landscape for developers

sinja.io · 14 Jul

Big Data · Data Science · Database

This guide provides software engineers with an overview of the data industry's landscape.

It covers data professions, lifecycles—including ETL and storage solutions like warehouses, lakes, and lakehouses—data processing tools, and consumption patterns. The article aims to demystify data terminology and architectures, helping developers better collaborate with data teams and understand the infrastructure behind analytical and scientific workflows.

PostgresBench: A Reproducible Benchmark for Postgres Services

clickhouse.com · 20 Jun

Database · Performance · PostgreSQL

ClickHouse has launched PostgresBench, an open-source, reproducible benchmark designed to evaluate the performance of managed PostgreSQL services.

Using pgbench with standardized transactional workloads, the project aims to provide transparent metrics, including TPS and latency, across various cloud providers like AWS RDS, Aurora, Neon, and Crunchy Bridge to ensure fair database infrastructure comparisons.

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