---
title: "Blob Direct Write With Partitioned Blob Files"
description: "RocksDB's Blob Direct Write writes values at or above min_blob_size straight to blob files during the write, so the WAL and memtable carry only a compact BlobIndex reference instead of the full value."
url: "https://swe.quest/articles/blob-direct-write-with-partitioned-blob-files-8acc320f71e2d848"
canonical: "https://rocksdb.org/blog/2026/06/20/blob-direct-write-partitioned-blob-files.html"
source: "RocksDB Blog"
published: "2026-06-20"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 9
tags: ["storage-engines","databases","c-cpp"]
---

# Blob Direct Write With Partitioned Blob Files

A post on [RocksDB Blog](https://swe.quest/sources/rocksdb.md), published 2026-06-20, 9 min read, Deep dive. Original: [https://rocksdb.org/blog/2026/06/20/blob-direct-write-partitioned-blob-files.html](https://rocksdb.org/blog/2026/06/20/blob-direct-write-partitioned-blob-files.html)

## Summary

RocksDB's Blob Direct Write writes values at or above min\_blob\_size straight to blob files during the write, so the WAL and memtable carry only a compact BlobIndex reference instead of the full value. A per-column-family BlobFilePartitionManager maintains multiple active blob partitions, and a pluggable BlobFilePartitionStrategy lets applications group values by policy. For example, routing similar-TTL values together concentrates garbage so whole blob files can be deleted while Universal Compaction handles keys and metadata. Blob files are registered in the MANIFEST only at memtable flush via a generation-based lifecycle, and v1 cannot recover unflushed direct-write state from the WAL after a crash. v1 also requires the ordered single-memtable-writer mode and excludes pipelined/concurrent writes, MemPurge and user-defined timestamps.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Storage engines](https://swe.quest/tags/storage-engines.md) (Data & databases)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [C & C++](https://swe.quest/tags/c-cpp.md) (Languages)

## Prerequisites

- LSM trees ([easy posts on Storage engines](https://swe.quest/tags/storage-engines.md?difficulty=easy))
- RocksDB BlobDB
- WAL and memtables
- compaction strategies

## Keywords

RocksDB, BlobDB, Blob Direct Write, BlobFilePartitionStrategy, Universal Compaction, wide columns, MANIFEST

## Related posts

- [Litestream Revamped: SQLite Replication](https://swe.quest/articles/litestream-revamped-sqlite-replication-0708888533a47bfa.md): Fly.io · 2025-05-20 · Medium · 6 min read · SQLite, Replication, Storage engines, Storage systems
  Litestream is being reworked around ideas from LiteFS. It replaces the raw-WAL "shadow WAL" with transaction-aware LTX files, sorted page changesets that can be compacted LSM-style, so point-in-time restores no longer replay every intermediate page write.
- [How does Turso Cloud keep your data durable and safe?](https://swe.quest/articles/how-does-turso-cloud-keep-your-data-durable-and-safe-676876baa112a2af.md): Turso · 2025-05-20 · Medium · 4 min read · SQLite, Storage engines, Storage systems, Multi-tenancy, Cloud platforms
  Turso Cloud makes every SQLite database durable on S3 and S3 Express, treating local server disk purely as a cache.
- [Postgres Bloat Minimization](https://swe.quest/articles/postgres-bloat-minimization-4680de201e2c3adb.md): Supabase · 2024-04-26 · Medium · 6 min read · PostgreSQL, Storage engines, Performance engineering
  Postgres stores table rows in 8KB heap pages and writes a new row version on every update, so dead versions accumulate until vacuum reclaims them and updates the free-space and visibility maps.
- [An adventure in writing compatible systems](https://swe.quest/articles/an-adventure-in-writing-compatible-systems-f48d37f87fc6e365.md): Turso · 2025-08-28 · Medium · 4 min read · SQLite, Storage engines, Formal methods, Debugging, Rust
  Turso, a Rust rewrite of SQLite, hit a bug where every write after the database crossed 1GB made SQLite's integrity checks fail, even though Turso's own checks found the file intact.
- [Making multiplayer more reliable](https://swe.quest/articles/making-multiplayer-more-reliable-3fb296ccf52c818b.md): Figma · 2022-10-20 · Medium · 10 min read · Real-time systems, Storage systems, Resilience, Rust, Cloud platforms
  Figma added a write-ahead journal to its in-memory multiplayer service, which previously persisted files only via full checkpoints to S3 every 30–60 seconds.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
