Incremental Database Synchronization With Validation Code Recovery

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing database systems face challenges in improving data synchronization performance and ensuring data consistency between different types of databases, leading to increased response times, development complexity, and service losses due to inconsistent data synchronization.

Innovation Solution

A data synchronization method and apparatus that synchronizes incremental operation records in chronological order, using validation codes to ensure accurate synchronization and rapid detection of exceptions, allowing for real-time recovery from synchronization issues.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If data synchronization is performed between different types of databases, then data consistency is improved, but response time increases

Engineering Contradiction:
Improvedata consistencyVSAvoidresponse time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent segments the data synchronization process into incremental operations, where data changes are captured and applied in small batches rather than bulk operations. This allows the system to maintain data consistency between different database types while minimizing the impact on response time through gradual, controlled synchronization steps.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements preliminary validation code generation before actual data synchronization occurs. By pre-validating data structures and generating validation codes in advance, the system prepares for synchronization operations, reducing the actual execution time and ensuring consistency without significant response time penalty.

Inventive Principle:
Principle #10Preliminary action

2Measurement precision

If validation codes are used to detect synchronization exceptions, then detection precision is improved, but device complexity increases

Engineering Contradiction:
Improveexception detection precisionVSAvoidsystem complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent implements a feedback mechanism where validation codes are generated from synchronized data and compared against expected values. When discrepancies are detected, the system automatically triggers exception handling and re-synchronization processes. This feedback loop provides high detection precision while managing complexity through automated response protocols.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system performs self-validation through automatically generated validation codes that check the integrity of synchronized data without requiring external verification. This self-service approach enhances detection precision while minimizing the need for additional complex verification systems.

Inventive Principle:
Principle #25Self-service

3Reliability

If automatic recovery from synchronization exceptions is implemented, then reliability is improved, but ease of operation deteriorates

Engineering Contradiction:
Improvesynchronization reliabilityVSAvoidoperational simplicity
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The patent implements automatic recovery mechanisms that detect synchronization exceptions and execute recovery procedures without human intervention. The system autonomously identifies failed synchronizations, retrieves valid data using validation codes, and re-applies corrections, thereby improving reliability while maintaining operational simplicity through automation.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

When synchronization exceptions occur, the system automatically discards corrupted or inconsistent data and recovers by re-synchronizing from the last known good state identified through validation code comparison. This automatic discard and recover process enhances reliability while keeping the system easy to operate through transparent error handling.

Inventive Principle:
Principle #34Discarding and recovering

Data Source

PatentUS20260099511A1Data synchronization method and apparatus, device, and storage medium
Publication Date: 2026.04.09 HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
  • US20260099511A1 patent drawing
  • US20260099511A1 patent drawing
  • US20260099511A1 patent drawing

AI summary

This application provides a data synchronization method and apparatus, and relates to the field of data storage technologies. The method includes: obtaining, from an incremental log in a source database, N incremental operation record sets arranged in a chronological order, where N is an integer greater than 1, and an Nth incremental operation record set is a current to-be-synchronized incremental operation record set; determining a target incremental operation record set based on a validation code of an incremental operation record set that is before the Nth incremental operation record set, where the target incremental operation record set is an incremental operation record set that is successfully synchronized to a last time of a target database; and synchronizing an incremental operation record set in the N incremental operation record sets to the target database, where the incremental operation record set is after the target incremental operation record set.