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 ALTER TABLE is such a problem for SQLite

sqlite.org · 13 Nov

Database · SQL · SQLite

SQLite provides limited support for the ALTER TABLE command, primarily allowing table and column renames, and the addition or deletion of columns.

While simple renames and additions are fast because they only modify schema text, certain operations like adding constraints or dropping columns require rewriting table data. For complex schema changes not directly supported, a 12-step manual procedure involving temporary tables is recommended to maintain database integrity and cross-version compatibility.

Production query plans without production data

boringsql.com · 8 Mar

Database · Performance · SQL

PostgreSQL 18 introduces pg_restore_relation_stats and pg_restore_attribute_stats, allowing users to export and inject optimizer statistics as portable SQL artifacts.

This feature enables developers to replicate production query plans in CI/CD or local environments without needing full production datasets, significantly improving performance debugging and preventing query regressions.

A Preview of DuckDB v2.0

duckdb.org · 17 Aug

Database · Performance · SQL

DuckDB v2.0 “Cyanoptera,” arriving this fall, shifts DuckDB toward server deployments with Quack and CONNECT, while adding VARIANT improvements, triggers, asynchronous object-storage I/O, major SQL extensions, faster recursive queries and partition pruning, a new storage format and PEG parser, native timezone support, and stable C APIs with signed private extension repositories.

It includes carefully chosen breaking changes.

Sorted string tables (SST) from first principles

bitsxpages.com · 5 Jan

Database · Software Architecture · Computer Science

This technical analysis explores Sorted String Tables (SSTs) as a foundational data structure for high-performance storage systems, particularly on SSDs.

It explains that because the fundamental unit of I/O is a 4KB page, databases must prioritize spatial and temporal locality to minimize read amplification. SSTs achieve this by storing data in immutable, lexicographically sorted blocks, allowing for efficient binary searches and alignment with SSD block-erasure patterns. The article details the implementation of SST components, including data blocks, primary indexes, and probabilistic filters like Bloom filters, while highlighting the trade-offs between memory utilization and read throughput. Furthermore, it demonstrates how SSTs serve as a 'Swiss Army knife' for data modeling, enabling complex access patterns like composite keys, secondary indexes, and wide columns through clever key structuring. Ultimately, the piece positions SSTs as the essential building block for modern databases like Cassandra, RocksDB, and ScyllaDB.

Top 7 Featured DEV Posts of the Week

dev.to · 13 Jan

C++ · Database · Frontend

This week's selection of top articles from the DEV community covers an extensive range of technical explorations and professional insights.

Key highlights include an ambitious comparison of various frontend frameworks through a single application build and a deep dive into building a custom game engine using C++ and SDL2. The roundup also challenges conventional database wisdom by demonstrating how PostgreSQL can outperform Redis in specific caching scenarios. Additionally, the collection features tutorials on AI-powered API test generation with Python, vanilla web development techniques for article viewers, and the subtle complexities of implementing pluralization logic in UI development. These posts collectively emphasize performance optimization, developer experience, and the rapid learning curve associated with startup environments.

The impersonator's product is the gap between meaning and spelling, so we measured both in Snowflake

dev.to · 6 Sept

Algorithms · Database · SQL

GLASSPOCKET is an accountability engine combining Snowflake’s VECTOR_COSINE_SIMILARITY and Jaro-Winkler analysis with H3-based delivery checks, and Solana devnet compressed-NFT receipts.

It compares meaning versus spelling to expose synthetic charity impersonations, scores geographic and reporting anomalies, and publishes privacy-preserving attestations. Testing found 97.8% precision but weak disaster-name recall; receipts also exposed duplicate minting and other implementation limits.

All you need is PostgreSQL

ebellani.github.io · 25 Jun

Database · PostgreSQL · SQL

Eduardo Bellani argues that many engineering problems, often solved with complex distributed systems, can be effectively handled using vanilla PostgreSQL.

By leveraging features like temporal tables, updatable views, and rigorous constraint triggers, teams can maintain data integrity, enforce business rules, and ensure high performance without unnecessary infrastructure complexity or architectural overhead.

De 6 horas para 40 segundos: como um índice de banco de dados salvou um job crítico de produção

dev.to · 6 Jun

Database · Performance · SQL

This case study details how adding a well-designed composite index saved a critical production job, reducing execution time from six hours to 40 seconds.

By analyzing performance bottlenecks using Azure Application Insights, the team identified that a covering index eliminated costly full table scans, significantly improving query efficiency without requiring code refactoring or architectural changes.

🐛 The Bug That Only Happened on Fridays 📅😱

dev.to · 13 Sept

Backend · Database · Monitoring

Intermittent Friday 500s in a checkout service were caused by a forgotten canary instance.

Its faulty health-check pinger opened raw database connections repeatedly, exhausting Postgres capacity before weekly restarts reset the leak. Grouping pg_stat_activity by application_name and usename exposed the zombie service, highlighting the importance of investigating infrastructure and recurring patterns.

Bichon: A lightweight, high-performance Rust email archiver with WebUI

github.com · 18 Nov

Database · Rust · Open Source

Bichon is a high-performance, open-source email archiving and search system developed in Rust.

Unlike traditional email clients, Bichon is optimized for permanent storage, advanced full-text search, and programmatic accessibility via a REST API. It utilizes the Tantivy engine for unified searching and Native_DB for metadata, ensuring fast retrieval across multiple IMAP accounts. Key features include compressed storage, deduplication, OAuth2 support, and a WebUI available in 18 languages. The project supports multi-user role-based access control and offers tools like bichonctl for importing external EML or MBOX files.

SQLite WAL-reset database corruption bug

sqlite.org · 6 Mar

Database · Software Architecture · SQLite

This technical overview explains SQLite's Write-Ahead Log (WAL) mode, detailing its mechanism for atomic commits and rollbacks.

It covers performance trade-offs between readers and writers, the role of checkpointing, and shared-memory requirements. Additionally, it addresses operational constraints, recovery processes, and a specific historical data race bug affecting database integrity.

PostgreSQL 18 RETURNING Enhancements: A Game Changer for Modern Applications

pgedge.com · 6 Jan

Backend · Database · PostgreSQL

PostgreSQL 18 introduces significant enhancements to the RETURNING clause, most notably the addition of OLD and NEW aliases for DML operations.

These improvements allow developers to capture both the pre-modification and post-modification states of data within a single atomic statement, including INSERT, UPDATE, DELETE, and the recently refined MERGE operations. This capability eliminates the need for redundant SELECT queries or complex trigger functions to track data changes, thereby reducing database round trips and streamlining application architecture. The update is particularly impactful for synchronization tasks and building comprehensive audit trails. By providing explicit access to previous and current values, PostgreSQL 18 simplifies conditional logic and enhances data tracking performance, reinforcing its status as a highly advanced open-source database for modern application requirements.

pgBackRest will continue

pgbackrest.org · 18 May

Database · PostgreSQL · Open Source

pgBackRest has secured long-term funding through a new coalition of corporate sponsors, including Amazon Web Services, Supabase, pgEdge, Tiger Data, Percona, and Eon.io.

This multi-sponsor model ensures project stability and sustainability for disaster recovery in the PostgreSQL ecosystem, enabling upcoming feature development and optimizations.

A Better SQL in 11 Lines of Code

prela-lang.org · 31 Aug

Algorithms · Database · Programming Languages

A UCLA RePL tutorial explains Prela, a query language built entirely around binary relations.

Using a toy Python implementation, it demonstrates relation composition, automatic foreign-key resolution, joins, filtering with predicates, conjunction, and projection. These operators compose into concise queries that can replace lengthy SQL, while also supporting grouping and aggregation.

An Introduction to Bε-trees and Write-Optimization

usenix.org · 2 Nov

Algorithms · Database · NoSQL · Performance · Computer Science

Bε-tree is a write-optimized data structure for organizing on-disk storage in databases and file systems.

It offers a key-value API like B-tree, with improved performance especially for inserts, range queries, and key-value updates. The article explains how Bε-tree works, compares its asymptotic performance with B-tree and Log-Structured Merge trees (LSM-trees), reports real-world measurements, and outlines how applications can maximize its performance.

Unicode 18.0.0

unicode.org · 16 Sept

Algorithms · Database · Computer Science

Unicode 18.0, announced as a preliminary September 2026 release, adds 13,007 characters, reaching 172,808, including Proto-Cuneiform numerals, Jurchen, and Seal scripts.

It updates the Unicode Character Database, code charts, conformance rules, segmentation, collation, security, emoji, and linkification standards. Developers should review migration guidance for changed properties, algorithms, variation sequences, and CJK data.

Detecting Full Table Scans With SQLite

tenderlovemaking.com · 15 Jul

Database · SQL · SQLite

This article explores how to detect SQLite full table scans programmatically using statement statistics API.

By monitoring the fullscan_steps metric, developers can identify inefficient queries during testing and development, allowing for performance optimizations like index creation, which helps improve database reliability and efficiency in applications like those built with Ruby on Rails.

Two Kinds of SQL Query Builders

mechanicalrabbit.github.io · 29 Sept

Database · Programming Languages · Software Architecture

The article distinguishes data-oriented and syntax-oriented SQL query builders.

Syntax-oriented tools incrementally populate a SQL syntax tree, making them easy to implement and order-insensitive but constrained by SQL’s rigid grammar. Data-oriented tools model data-processing pipelines; FunSQL combines this flexibility with comprehensive SQL coverage, supporting complex features such as recursive queries, lateral joins, and window functions.

SQLite for Everything

joecode.com · 19 Aug

Database · Software Architecture · SQL

The article argues that SQLite can replace many specialized systems—search engines, document stores, queues, caches, vector databases, time-series platforms, file storage, graph databases, and microservices—for workloads limited to one writer and one machine.

Its stability, portability, transactional consistency, low operational overhead, and performance make simplicity a powerful default, though PostgreSQL or specialized systems remain necessary at larger scales.

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