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.
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.
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.
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.
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.
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.
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.
Show HN: Streambed – Stream Postgres to Iceberg on S3, Supports Postgres Wire
Database · PostgreSQL · SQL
Streambed is a CDC engine that synchronizes PostgreSQL WAL changes to S3 as Iceberg tables.
It enables analytical querying without ETL or Spark by using a built-in query server based on DuckDB, which supports the PostgreSQL wire protocol for seamless connectivity.
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 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.