---
title: "Range Tombstone Conversion: Faster Scans Over Long Runs of Deletes"
description: "RocksDB 11.3.0 adds range tombstone conversion: when a read iterator walks a run of contiguous point tombstones with no live key between them, it inserts one redundant range tombstone [first_tombstone_key, next_live_key) into the memtable at the iterator's snapshot sequence number."
url: "https://swe.quest/articles/range-tombstone-conversion-faster-scans-over-long-runs-of-deletes-35ec1c2ca9bbc8b7"
canonical: "https://rocksdb.org/blog/2026/06/22/range-tombstone-conversion.html"
source: "RocksDB Blog"
published: "2026-06-22"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 8
tags: ["storage-engines","performance","databases"]
---

# Range Tombstone Conversion: Faster Scans Over Long Runs of Deletes

A post on [RocksDB Blog](https://swe.quest/sources/rocksdb.md), published 2026-06-22, 8 min read, Deep dive. Original: [https://rocksdb.org/blog/2026/06/22/range-tombstone-conversion.html](https://rocksdb.org/blog/2026/06/22/range-tombstone-conversion.html)

## Summary

RocksDB 11.3.0 adds range tombstone conversion: when a read iterator walks a run of contiguous point tombstones with no live key between them, it inserts one redundant range tombstone \[first\_tombstone\_key, next\_live\_key) into the memtable at the iterator's snapshot sequence number. Later scans then skip the run in one hop instead of O(N) steps. Only the iterator can do this safely, because it merges every memtable and SST level, while flush and compaction see only part of the LSM and could shadow live keys at other levels. The feature is off by default and enabled with the dynamic option min\_tombstones\_for\_range\_conversion. db\_bench shows ~99x faster forward and ~368x faster reverse scans over delete-heavy data, with no regression when there are no tombstones.

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)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

- LSM-tree basics ([easy posts on Storage engines](https://swe.quest/tags/storage-engines.md?difficulty=easy))
- RocksDB compaction and memtables
- tombstones and snapshots

## Keywords

RocksDB, DeleteRange, range tombstones, db\_bench, min\_tombstones\_for\_range\_conversion, LSM-tree

## Related posts

- [Persistent Structures: Key to 2000x Speedup in Neon’s WAL Indexing](https://swe.quest/articles/persistent-structures-key-to-2000x-speedup-in-neon-s-wal-indexing-ca3203d56783f4cb.md): Neon · 2023-05-19 · Hard · 10 min read · Data structures, Storage engines, PostgreSQL, Rust, Performance engineering
  Neon's pageserver must answer GetPage(key, LSN) by finding, for a point in key–LSN space, the first image or delta layer rectangle directly below it, across tens of millions of layers.
- [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.
- [Supabase Storage: major performance, security, and reliability updates](https://swe.quest/articles/supabase-storage-major-performance-security-and-reliability-updates-2ffa30c3ec95bba1.md): Supabase · 2026-03-05 · Medium · 4 min read · Storage systems, PostgreSQL, Performance engineering, Security, Observability
  Supabase Storage replaces its trigger-maintained prefixes table with a hybrid skip-scan algorithm that derives folder structure at read time, and switches from OFFSET to cursor-based pagination, making deep pagination up to 14.8x faster on 60 million rows with no write penalty.
- [Birth and death of a row in Turso's MVCC](https://swe.quest/articles/birth-and-death-of-a-row-in-turso-s-mvcc-f60b68028888940e.md): Turso · 2026-10-19 · Hard · 14 min read · Storage engines, SQLite, Consistency models, Databases
  Turso's MVCC, modeled on Hekaton, tracks each row as a chain of versions in a lock-free SkipMap, with begin/end fields holding a TxId while a transaction is active and a commit timestamp once it commits.
- [Streaming secondary indices: incremental, demand-driven index evaluation](https://swe.quest/articles/streaming-secondary-indices-incremental-demand-driven-index-evaluation-41766db7296ee01a.md): ClickHouse · 2026-01-12 · Medium · 4 min read · Query engines, Analytics & OLAP, Performance engineering, Databases
  ClickHouse 25.9 introduces streaming secondary indices, which check skip-index entries (minmax, set, bloom filter, vector, text) incrementally as each table granule is about to be read, instead of scanning the whole index before query execution.

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)
