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

databow: a Rust CLI to query any database with an ADBC driver

columnar.tech · 2 Jun

CLI · Database · SQL

databow is a new open-source command-line tool written in Rust that provides a unified interface for querying diverse databases using the ADBC standard.

It replaces fragmented CLIs with a consistent, high-performance experience, supporting over 30 databases, interactive SQL shells, scripted automation, and versatile data export options to streamline workflows for data engineers.

Columnar Storage Is Normalization

buttondown.com · 20 Apr

Data Science · Database · SQL

Columnar storage can be interpreted as an extreme form of database normalization, where the implicit index acts as a primary key.

Reconstructing a row from columnar data is conceptually equivalent to performing a join operation. This mental model unifies data formatting with query operations like projections, highlighting that storage layout is a critical implementation detail affecting query performance.

Show HN: Tusk for macOS and Gnome

shapemachine.xyz · 4 Apr

Database · PostgreSQL · SQL

This comparison table details the feature differences between two database management tools for PostgreSQL.

It covers key functional areas including connection management, schema browsing, table inspection, data management, SQL editing, and file exploration, highlighting specific capabilities unique to each application's implementation.

Nobody ever got fired for using a struct

feldera.com · 2 Mar

Database · Performance · Rust

Engineers at Feldera optimized performance for SQL tables with hundreds of nullable columns.

They discovered that default Rust struct serialization via rkyv wasted significant space on optional fields. By implementing a custom bitmap-based approach and sparse row storage, they halved serialized data size and resolved major disk I/O bottlenecks.

Native ZFS VDEV for Object Storage (OpenZFS Summit)

zettalane.com · 25 Apr

Cloud Computing · Database · Performance

At the OpenZFS Developer Summit 2025, MayaNAS and MayaScale showcased objbacker.io, a pioneering native ZFS VDEV implementation for object storage.

Unlike traditional FUSE-based solutions that suffer from high overhead due to kernel-userspace transitions, objbacker.io uses a direct character device interface to communicate with cloud SDKs. This architecture achieves an impressive 3.7 GB/s read throughput from S3, Google Cloud Storage, and Azure Blob Storage. By leveraging ZFS special devices and parallel bucket I/O, the system optimizes metadata on local NVMe while storing bulk data on cost-effective object storage, reducing cloud NAS costs by up to 70% compared to standard block storage.

O que são essas letrinhas: ACID

dev.to · 17 Jul

Database · PostgreSQL · SQL

ACID—Atomicity, Consistency, Isolation, and Durability—is a foundational set of properties for database transactions.

These paradigms ensure data integrity and reliability, especially in sensitive contexts like finance. By utilizing examples in PostgreSQL, this analysis demonstrates how ACID principles maintain system consistency, prevent partial updates, manage concurrent operations, and ensure persistent data despite failures.

Announcing DuckDB 2.0.0 LTS “Cinnamon Teal”

duckdb.org · 21 Oct

Database · SQL

DuckDB 2.0.0 LTS “Cinnamon Teal” is the project’s largest feature release, built from nearly 20,000 commits since 1.5 and supported until at least October 2027.

It adds a production-ready Quack client-server protocol, remote query pushdown, asynchronous Parquet/CSV I/O, first-class columnar VARIANT support, CLI agent mode, triggers, and an extensible PEG-based SQL parser. It also introduces a C++17 requirement and storage-format compatibility considerations for migration.

Ultorg: The User Interface for Relational Databases

ultorg.com · 10 Nov

Database · UI

Ultorg is a graphical interface for exploring, combining, querying, and editing relational databases and spreadsheet-based data.

It connects to systems including PostgreSQL, MySQL, DuckDB, BigQuery, Excel, Google Sheets, and CSV files, generating SQL queries behind the scenes. Users can create visual joins, inspect one-to-many relationships, build complex queries without writing SQL, and rely on automatic layouts. Ultorg also supports reviewing and committing edits, including concurrent multi-user changes.

My PostgreSQL database got nuked lol

akselmo.dev · 11 Mar

Cybersecurity · Database · PostgreSQL

A developer shares a cautionary tale about losing their PostgreSQL database twice due to exploitable configurations.

The root causes were weak default credentials and Docker modifying host firewall rules to expose the database port publicly. The incident highlights the importance of securing docker-compose ports, using strong passwords, and properly configuring UFW on a VPS.

Git in Postgres

nesbitt.io · 26 Feb

Database · PostgreSQL · SQL

Gitgres is an experimental system that uses PostgreSQL as a storage backend for Git repositories via libgit2.

By treating Git objects and refs as database rows, it simplifies DevOps by unifying application data and repository storage, enabling complex SQL queries across code and metadata while streamlining backups and scalability.

Jepsen: MariaDB Galera Cluster 12.1.2

jepsen.io · 16 Mar

Database · Distributed Systems · SQL

Jepsen tested MariaDB Galera Cluster by simulating network faults and crashes.

Findings reveal significant data persistence issues, including the loss of committed writes during node recovery, as well as consistency anomalies like Lost Updates and Stale Reads in healthy clusters. The study concludes that the system's actual performance fails to meet documented consistency and availability claims.

How to Save Bloated MCP with Code Mode

dev.to · 13 May

Database · Large Language Models · AI Agents

Model Context Protocol (MCP) faces criticism for context bloating, where large schemas overwhelm AI models.

To address this, developers are shifting toward 'Code Mode'—an approach that simplifies tool interfaces. By implementing a schema-execute-check pattern, ZenStack reduces token usage and improves scalability, proving that MCP remains viable when optimized for efficient agentic interaction.

Clickhouse is winning the Observability Wars

matduggan.com · 1 Jul

Big Data · Database · Performance

Observability often struggles with the high volume and inconsistent nature of logs, which become increasingly difficult to manage as data grows.

Most logging stacks mutate in complexity or cost at scale. ClickHouse stands out by offering a consistent, columnar architecture that scales linearly through sharding, providing significant performance and efficiency advantages as data volumes increase.

Lua as a Query Language

remy.wang · 29 Nov

Database · Programming Languages

Prela adds a dynamic query frontend by using Lua to construct AST nodes instead of writing a parser.

Lua relational operators, overloaded field access, local variables, and column-aware arithmetic express filters, joins, CTEs, grouping, and aggregation; Rust receives the resulting AST, avoiding rustc compilation overhead for ad hoc queries. The approach produces concise TPC-H queries, but requires sandboxing because unrestricted Lua would permit arbitrary code.

From Spreadsheets to DuckLake: A Data Engineer's Road to DuckDB

duckdb.org · 29 Oct

Big Data · Database

Matt Martin's career moved from spreadsheet automation through Teradata, BigQuery and Spark to DuckDB and DuckLake, driven by reducing infrastructure overhead while meeting workload requirements.

DuckDB lets him query local and S3 CSV, Parquet and Iceberg data with SQL, while DuckLake stores table metadata in an indexed SQL database instead of many files. Testing DuckDB v2.0 alpha, he reports 67–70% faster S3 reads, dynamic ATTACH expressions, asynchronous I/O and Quack remote connectivity.

Gems of DuckDB 2.0.0

duckdb.org · 26 Oct

Database · SQL

DuckDB 2.0.0 adds a broad set of smaller usability, SQL, data, and extension improvements alongside its headline features.

The Python client now provides an appender for batched row insertion; the CLI gains formatted .schema, .manual, calculator, and queryable history. New capabilities include SHOW for settings, SECURE VIEW, regexp_extract options, sequence setval, session-variable parameter fallbacks, custom partition paths and ordering, and GeoJSON/GeoJSONL writing. Community extensions publish compatibility matrices, and extensions can define cataloged window functions.

From JSON Strings to Typed Columns

duckdb.org · 16 Oct

Database · SQL

DuckDB can convert a table’s JSON text column directly into typed columns without a file round trip.

Cast the column to JSON, use json_group_structure to infer a schema, adjust types with json_merge_patch, and apply json_transform followed by unnest. Nested objects become STRUCTs, arrays can be unnested into rows, and missing fields become NULL. json_transform_strict exposes conversion errors, while typed storage avoids reparsing JSON in later queries.

What Is Inside an Iceberg Table?

duckdb.org · 13 Oct

Big Data · Database

An Apache Iceberg table is an immutable file tree: metadata JSON, manifest lists and manifests in Avro, and data and delete files in Parquet.

DuckDB can inspect every layer with SQL, following the catalog’s pointer to the current snapshot. Snapshots record commits; manifests expose partitions, file counts, and column bounds for pruning. Deletes use position files, leaving data unchanged, which makes writes cheaper but adds read overhead. This structure helps diagnose stale metadata, excessive files, or poor skipping.

SQLite 3.53.0

sqlite.org · 9 Apr

Database · SQL · SQLite

SQLite 3.53.0 introduces the Query Result Formatter (QRF) library to enhance CLI output, adds support for modifying constraints in ALTER TABLE, improves the query planner, and introduces new JSON functions.

It also provides new C APIs and optimizations while addressing critical reliability fixes like the WAL-reset corruption bug.

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