Branch-Aware MVCC Garbage Collection with Hierarchical Visibility and LSM Compaction Integration

We present a garbage collection (GC) algorithm for multi-version concurrency control (MVCC) in database systems that support hierarchical copy-on-write branching. Traditional MVCC GC systems use single-dimensional retention policies (time-based or snapshot-based) and are unaware of branch hierarchies. When a parent branch garbage-collects old versions, child branches that depend on those versions through inheritance lose data access, causing query failures. Our algorithm computes a multidimensional GC horizon for each branch by taking the minimum log sequence number (LSN) across three dimensions: (1) the branch’s own retention period, (2) the creation LSNs of all descendant branches (protecting inherited data), and (3) active transaction snapshots across the branch lineage. We further integrate this branch-aware GC policy with LSM-tree compaction by filtering version records during SSTable merge operations. The algorithm achieves 100% correctness (zero data loss in multi-branchscenarios) with 10–30% storage savings versus a conservative “never delete” approach. We describe the architecture, algorithms, and implementation in HeliosDB, with per-branch observability via 10 Prometheus metrics. No prior database system combines hierarchical branch visibility with MVCC garbage collection and LSM compaction integration.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-03-26
DOI
https://doi.org/10.5281/zenodo.19242033
Primary Topic
Distributed systems and fault tolerance
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Branch-Aware MVCC Garbage Collection with Hierarchical Visibility and LSM Compaction Integration

Daniel Moya Vaca
Zenodo (CERN European Organization for Nuclear Research)
Distributed systems and fault tolerance
article

Branch-Aware MVCC Garbage Collection with Hierarchical Visibility and LSM Compaction Integration

Daniel Moya Vaca
article en

Abstract

We present a garbage collection (GC) algorithm for multi-version concurrency control (MVCC) in database systems that support hierarchical copy-on-write branching. Traditional MVCC GC systems use single-dimensional retention policies (time-based or snapshot-based) and are unaware of branch hierarchies. When a parent branch garbage-collects old versions, child branches that depend on those versions through inheritance lose data access, causing query failures. Our algorithm computes a multidimensional GC horizon for each branch by taking the minimum log sequence number (LSN) across three dimensions: (1) the branch’s own retention period, (2) the creation LSNs of all descendant branches (protecting inherited data), and (3) active transaction snapshots across the branch lineage. We further integrate this branch-aware GC policy with LSM-tree compaction by filtering version records during SSTable merge operations. The algorithm achieves 100% correctness (zero data loss in multi-branchscenarios) with 10–30% storage savings versus a conservative “never delete” approach. We describe the architecture, algorithms, and implementation in HeliosDB, with per-branch observability via 10 Prometheus metrics. No prior database system combines hierarchical branch visibility with MVCC garbage collection and LSM compaction integration.

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 6%
Distributed systems and fault tolerance
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.