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

F3

github.com · 23 Jun

Big Data · Database · Rust

F3 is a next-generation open-source columnar data file format designed for efficiency, extensibility, and interoperability.

It addresses layout limitations in formats like Parquet by embedding Wasm decoders within files, ensuring future-proof compatibility and platform-agnostic performance. The project provides a research prototype and API for developers, enabling adaptable data encoding schemes for evolving analytics workloads.

Twelve years of distributed SQLite

philipotoole.com · 24 Oct

Backend · Database · Distributed Systems · SQLite · History

rqlite introduced open-source distributed SQLite in 2014 by placing a Raft log before SQLite, using CP semantics and leader-based majority writes.

The field later expanded through dqlite’s embedded library, Litestream’s WAL streaming to S3, LiteFS, CRDT-based cr-sqlite, libSQL/Turso, SQLite Cloud, and managed platforms such as Cloudflare D1. These projects represent consensus, streaming recovery, and merge-based designs; commercial success largely came from turning replicated SQLite into a hosted service.

Postgres is enough for more than we admit

postgresisenough.dev · 9 Jul

Database · PostgreSQL · Software Architecture

Many development teams prematurely adopt complex architectures, adding unnecessary databases like Redis, Elasticsearch, or MongoDB.

Postgres is often sufficient for most use cases, offering robust features for caching, queues, search, and analytics. Prioritizing simplicity reduces operational overhead, maintenance burdens, and costs, allowing startups to focus on innovation until actual scale necessitates more specialized solutions.

Please, I beg you, we need to stop using Stored Procedures (from applications)

heffree.dev · 30 Aug

Database · Performance · SQL

The author argues that applications should usually avoid Stored Procedures, because parameterized queries and plan caching provide equivalent DBMS benefits while keeping database logic versioned with application code.

They urge developers to learn SQL and collaborate with DBAs, emphasizing fewer network requests, indexes, profiling, ORM query inspection, avoiding N+1 and Cartesian explosions, and careful dynamic-query design, conversions, TVPs, and filtered indexes.

The perils of UUID primary keys in SQLite

andersmurphy.com · 5 Jun

Database · SQL · SQLite

Using random UUID4 as primary keys in SQLite leads to significant performance degradation due to B-tree rebalancing and increased paging.

Performance testing reveals that UUID4 inserts are 10-12 times slower than integer primary keys. Switching to time-ordered UUID7 effectively mitigates these issues, bringing performance near baseline levels despite the larger byte size of UUIDs.

Distributed, high-performance blob storage on SQLite

zerodha.tech · 19 Nov

Backend · Database · Performance · Software Architecture · SQLite

Zerodha built Blobasaur, an open-source distributed blob server written in Rust that uses sharded SQLite storage and the Redis protocol.

It replaces unmaintained, single-node SSDB for Kite’s bursty workloads of multi-kilobyte to multi-megabyte JSON preferences. Per-shard writers, batched transactions, concurrent readers, zstd compression, TTLs, and Redis Cluster routing provide horizontal scaling and single-digit-millisecond latency. In benchmarks, 16 shards delivered 25,324 HSET operations per second, while production p99 latency across three nodes remains about 2 ms.

The startup's Postgres survival guide

hatchet.run · 22 Jul

Database · PostgreSQL · SQL

This guide covers essential Postgres management for startups, emphasizing iterative schema design, performance-oriented querying with indices, and effective connection management.

It covers intermediate topics like the query planner, query optimization with EXPLAIN ANALYZE, balancing autovacuum settings to prevent bloat, and advanced strategies such as partitioning and FOR UPDATE SKIP LOCKED to ensure production reliability.

SQLite should have (Rust-style) editions

mort.coffee · 15 Jul

Database · SQL · SQLite

The author argues that SQLite should adopt a versioned 'editions' system similar to Rust.

Currently, SQLite’s default settings—such as disabled foreign key constraints, loose type affinity, and lack of busy-timeouts—often lead to bugs and poor performance. An edition-based approach would allow for modernizing global defaults while maintaining backward compatibility.

The memory shortage is causing a repricing of consumer electronics

davidoks.blog · 21 May

Artificial Intelligence · Database · Business

The surge in demand for High-Bandwidth Memory (HBM) in AI data centers has created a severe global memory shortage.

As memory manufacturers prioritize lucrative HBM over standard DRAM for smartphones and PCs, consumer electronics prices are spiking. This supply squeeze threatens the affordability of entry-level smartphones, reversing decades of technological democratization for the world's poorest populations.

mksglu/context-mode

github.com · 1 Oct

Database · Large Language Models · AI Agents

Context Mode is an MCP server and plugin suite for AI coding agents that reduces context consumption by sandboxing tool output, encouraging code-based analysis, and indexing data in SQLite FTS5 for BM25 retrieval.

It preserves session memory across compaction and routes tool usage across 17 platforms through hooks, plugins, and configuration adapters.

Unconventional PostgreSQL Optimizations

hakibenita.com · 20 Jan

Database · Performance · PostgreSQL

This article explores unconventional optimization techniques for PostgreSQL to improve performance and reduce storage costs.

Key strategies include using constraint_exclusion to skip unnecessary table scans, leveraging function-based indexes on virtual generated columns for lower cardinality data, and enforcing uniqueness on large values using exclusion constraints with Hash indexes.

DuckDB Internals: Why Is DuckDB Fast? (Part 1)

greybeam.ai · 16 Jun

Database · SQL · Computer Science

DuckDB is a rapidly adopted, high-performance, in-process analytical SQL database designed for efficiency.

Unlike server-based engines, it runs within the client application, avoiding network and serialization overhead. This analysis details its front-end architecture—covering parsing, binding, cost-based optimization, physical planning, and storage layer—explaining how it enables lightning-fast queries on formats like Parquet, CSV, and internal binary files.

It's 2026, Just Use Postgres

tigerdata.com · 2 Feb

Database · PostgreSQL · SQL

This article challenges the 'use the right tool for the right job' mantra that often leads developers to manage multiple specialized databases (Elasticsearch, Pinecone, Redis, etc.).

Such sprawl creates technical debt, complex security models, and high operational costs. Instead, the author advocates for using PostgreSQL as a unified platform. Innovations like pgvector (vector search), TimeScaleDB (time-series), and pg_textsearch (BM25 search) allow Postgres to match specialized tools' performance using similar algorithms. This simplification is especially critical in the AI era, where maintaining consistent data for agents is easier within a single, atomic environment. The post concludes that 99% of companies can achieve their goals with Postgres alone, reducing architecture fragmentation and potential failure points.

Codex logging bug may write TBs to local SSDs

github.com · 22 Jun

Database · Performance · SQLite

Codex is causing excessive disk write volume, estimated at 640 TB/year, due to verbose SQLite feedback logs set to TRACE level.

This significantly impacts SSD longevity. The issue stems from default logging of high-frequency dependency events and telemetry. Proposed fixes include filtering TRACE logs, capping log size, and better managing payload storage to reduce I/O.

The dumbest performance fix ever

computergoblin.com · 31 Jan

C# · Database · Performance

In this technical narrative, Leónidas Neftalí González Campos recounts a significant optimization challenge involving a REST API built with C# and the ABP framework.

The issue centered on a 'Users list' endpoint that appeared to crash but was actually just extremely inefficient, taking over five minutes to complete bulk operations. The root cause was a '2-year-old hotfix' where developers used a foreach loop to await individual database inserts one by one. By bypassing the outdated ABP repository and directly implementing Entity Framework Core's AddRange and SaveChangesAsync methods, the author reduced execution time from five minutes to 300 milliseconds. The story highlights the dangers of technical debt and a 'feature factory' management culture that prioritizes speed over quality, emphasizing that significant gains often come from removing suboptimal practices rather than complex innovations.

Lies We Tell Ourselves About Email Addresses

gitpush--force.com · 6 Jun

Backend · Database · PostgreSQL

Email validation is fraught with legacy issues and misconceptions.

Instead of relying on complex, unreliable regex that often breaks valid cases like international characters, subaddressing, or unique domain formats, prioritize verification. Simply send a verification email to confirm the address is functional and owned by the user, while implementing case-insensitive storage for consistency.

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