Compacted Table Data Validation via Replay Log Hashing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Database systems face inefficiencies in data recovery due to the complexity and volume of replay logs, leading to high computational resource utilization, data corruption, and the need for frequent backups, which can result in data loss and integrity issues during compaction and validation processes.

Innovation Solution

A method for validating compacted table data files involves replaying replay logs and compacted replay logs to generate equivalent results, comparing hash values of column values to verify data integrity, and optimizing computational resources by hashing unused column values in the replay process.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If replay logs are compacted to reduce data volume, then storage efficiency is improved, but data integrity and reliability may deteriorate due to potential corruption during compaction

Engineering Contradiction:
Improvedata volumeVSAvoiddata integrity
Core Design Contradiction:
Quantity of substanceVSReliability

Solution Approach 1:

The system performs preliminary validation by replaying the compacted replay log and comparing its results against the original replay log before finalizing the compaction. This preliminary action detects any data corruption or inconsistencies that may have occurred during compaction, ensuring data integrity is maintained while achieving storage efficiency.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system implements a feedback mechanism where the validation result of the compacted replay log is used to determine whether the compaction was successful. If the validation fails (indicating data corruption), the system can take corrective actions such as retrying the compaction with different parameters or alerting operators, thus maintaining reliability while optimizing storage.

Inventive Principle:
Principle #23Feedback

2Reliability

If frequent backups are performed to prevent data loss, then data safety is improved, but computational resource utilization and time consumption increase

Engineering Contradiction:
Improvedata safetyVSAvoidresource efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

Instead of performing full database backups, the system creates and validates a compacted replay log that serves as a lightweight copy containing only the essential transaction information needed for recovery. This copying approach maintains data safety while significantly reducing the computational resources and time required compared to traditional full backups.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The system discards redundant transaction details in the replay log during compaction, keeping only the essential information needed for data recovery. This selective discarding reduces the size and processing requirements of backup operations while maintaining the ability to recover data when needed.

Inventive Principle:
Principle #34Discarding and recovering

3Measurement precision

If all column values are replayed during validation, then measurement precision is improved, but computational resource utilization increases

Engineering Contradiction:
Improvevalidation accuracyVSAvoidcomputational resource utilization
Core Design Contradiction:
Measurement precisionVSUse of energy by moving object

Solution Approach 1:

The system extracts and replays only the necessary column values from the replay log during validation, rather than processing all columns. By identifying and extracting only the critical columns that impact data integrity, the system maintains validation accuracy while significantly reducing computational resource utilization.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The system performs partial validation by focusing on key columns and rows that are most critical for detecting data corruption, rather than exhaustively validating every single value. This partial action approach provides sufficient validation precision to detect issues while consuming fewer computational resources than complete validation.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS12174819B2Compacted table data files validation
Publication Date: 2024.12.24 THOUGHTSPOT INC
  • US12174819B2 patent drawing
  • US12174819B2 patent drawing
  • US12174819B2 patent drawing

AI summary

A first replay log is replayed to generate a first replay result. Replaying the first replay log includes replacing, in the first replay result, a first value of a first field included in a first command in the first replay log with a first hash value responsive to a determination that the first field is not utilized as a condition in at least one command included in the first replay log. A second replay log is replayed to generate a second replay result. The first replay result and the second replay result are compared to verify that the first replay log and the second replay log are equivalent.