Minor Compaction Files for Low-Latency Data Table Checkpointing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Frequent checkpointing operations in data processing services result in significant I/O overhead and latency due to the need to rewrite large amounts of data, especially in large data tables, leading to inefficient data management and increased system latency.

Innovation Solution

Implementing minor compactions that aggregate transactions over intervals, reducing the frequency of checkpointing by creating minor compaction files that consolidate incremental changes, allowing for efficient merging with previous checkpoint files, thereby minimizing the need to read multiple log files during checkpointing.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If frequent checkpointing operations are performed to capture aggregated actions for commit ranges, then data consistency and reliability are improved, but I/O overhead and system latency increase significantly

Engineering Contradiction:
Improvedata consistencyVSAvoidsystem latency
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent segments the checkpointing process by introducing minor compaction files that capture aggregated actions for specific commit ranges. Instead of performing a full state reconstruction at every checkpoint, the system divides the work into manageable segments (minor compaction files) that can be processed incrementally, reducing the latency of individual checkpoint operations while maintaining data consistency.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies preliminary action by pre-computing and storing aggregated actions in minor compaction files before they are needed for checkpointing. These minor compaction files are generated in advance as transactions are committed, so when a checkpoint is needed, the system can quickly apply these pre-computed changes rather than reconstructing the entire state from scratch.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If full state reconstruction is performed during checkpointing, then complete data consistency is achieved, but I/O costs and resource consumption increase

Engineering Contradiction:
Improvedata consistencyVSAvoidI/O costs
Core Design Contradiction:
ReliabilityVSLoss of energy

Solution Approach 1:

The patent extracts only the necessary changes from the full state reconstruction process by using minor compaction files that contain aggregated actions for specific commit ranges. Instead of rewriting the entire data table state during checkpointing, the system extracts and applies only the incremental changes stored in minor compaction files, significantly reducing I/O costs while maintaining data consistency.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent merges the checkpointing process with minor compaction files by combining the base checkpoint state with incremental changes from multiple minor compaction files. This merging approach allows the system to achieve complete data consistency without performing a full state reconstruction, as the minor compaction files contain all necessary changes aggregated from committed transactions.

Inventive Principle:
Principle #5Merging (Combining)

3Reliability

If multiple log files are read during checkpointing to reconstruct data table state, then complete transaction history is captured, but I/O overhead increases

Engineering Contradiction:
Improvetransaction completenessVSAvoidcheckpointing efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent merges multiple log files into consolidated minor compaction files that contain aggregated actions for specific commit ranges. During checkpointing, instead of reading and processing numerous individual log files, the system reads the pre-aggregated minor compaction files, which contain the same transaction information in a consolidated format, significantly improving checkpointing efficiency while maintaining transaction completeness.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The patent applies preliminary action by pre-aggregating transaction data from multiple log files into minor compaction files before checkpointing occurs. This preliminary aggregation reduces the I/O overhead during checkpointing, as the system only needs to read the consolidated minor compaction files rather than processing numerous individual log files at checkpoint time.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS20250363096A1Generating Minor Compactions to Capture Aggregated Actions for Commit Ranges to Data Files
Publication Date: 2025.11.27 DATABRICKS INC
  • US20250363096A1 patent drawing
  • US20250363096A1 patent drawing
  • US20250363096A1 patent drawing

AI summary

A data processing service uses minor compactions for committing transactions to a data table. The service may receive requests to commit transactions to a data table and write metadata for the transactions to log files, and generate a checkpoint file aggregating the transactions described in the log files to compute a data table state at a first time. The service may receive requests to commit a set of transactions and write metadata for the set of transactions to a set of log files. The service may determine that a number of log files in the set of log files reaches a threshold commit number, generate a minor compaction file aggregating the set of transactions, and generate a second checkpoint file aggregating the data table state at the first time with information from the minor compaction file to compute the data table state at a second time.