# US 2026/0099511 A1 · Data synchronization method and apparatus, device, and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0099511 A1
- Document ID: US20260099511A1
- Status: Published application
- Kind: A1
- Application number: 19/415,545
- Filed: 2025-12-10
- Published: 2026-04-09
- Earliest claimed: 2023-06-13
- Assignees: Huawei Cloud Computing Technologies Co., Ltd.
- Applicants: Huawei Cloud Computing Technologies Co., Ltd.
- Inventors: Wenhao Tian; Tao Yang; Jing Yuan
- Web page: https://patentgrep.com/patent/US20260099511A1

## CPC

- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F 16/23: Updating
- G06F 16/2358: {Change logging, detection, and notification (replication G06F16/27)}
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 16/258: {Data format conversion from or to a database}
- G06F 16/273: {Asynchronous replication or reconciliation}
- G06F 16/275: {Synchronous replication}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

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.

## Claims

### Claim 1

A method of data synchronization for a database system, the method comprising:
obtaining, from an incremental log in a source database of the database system, N incremental operation record sets arranged in a chronological order, wherein 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, wherein the target incremental operation record set is an incremental operation record set that is successfully synchronized to a last time of a target database of the database system; and
synchronizing an incremental operation record set in the N incremental operation record sets to the target database, wherein the incremental operation record set in the N incremental operation record sets is after the target incremental operation record set.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
generating a validation code of the Nth incremental operation record set; and
sending the validation code of the Nth incremental operation record set to the target database after determining that the Nth incremental operation record set has been successfully synchronized to the target database.

### Claim 3 (depends on 1)

The method according to claim 1, wherein determining the target incremental operation record set comprises:
obtaining a comparison validation code from the target database, wherein the comparison validation code is stored in the target database and is a validation code of a latest incremental operation record set that has been successfully synchronized to the target database;
searching for a validation code that is same as the comparison validation code and is in the validation code of the incremental operation record set that is before the Nth incremental operation record set; and
determining the target incremental operation record set based on the validation code that is the same as the comparison validation code and is in the validation code of the incremental operation record set that is before the Nth incremental operation record set, wherein a validation code of the target incremental operation record set is the same as the comparison validation code.

### Claim 4 (depends on 1)

The method according to claim 1, wherein
a type of the source database is different from a type of the target database;
the N incremental operation record sets are N intermediate-format incremental operation record sets; and
obtaining, from the incremental log in the source database, the N incremental operation record sets arranged in the chronological order comprises:
obtaining an Nth source-format incremental operation record set from the incremental log in the source database using a parser that matches the type of the source database; and
converting the Nth source-format incremental operation record set into an Nth intermediate-format incremental operation record set.

### Claim 5 (depends on 4)

The method according to claim 4, wherein synchronizing the incremental operation record set in the N incremental operation record sets to the target database comprises:
converting the Nth intermediate-format incremental operation record set into an Nth target-format incremental operation record set using an adapter that matches the type of the target database; and
sending the Nth target-format incremental operation record set to the target database, to cause the target database to perform an incremental operation corresponding to the Nth target-format incremental operation record set.

### Claim 6 (depends on 4)

The method according to claim 4, wherein synchronizing the incremental operation record set in the N incremental operation record sets to the target database comprises:
selecting, from the Nth intermediate-format incremental operation record set, an intermediate-format incremental operation record related to a target data table based on an identifier of the target data table;
converting the intermediate-format incremental operation record related to the target data table into a target-format incremental operation record related to the target data table; and
sending the target-format incremental operation record related to the target data table to the target database, to cause the target database to perform an incremental operation corresponding to the target-format incremental operation record related to the target data table.

### Claim 7 (depends on 1)

The method according to claim 1, wherein obtaining, from the incremental log in the source database, the N incremental operation record sets arranged in the chronological order comprises:
obtaining, from the incremental log in the source database, the N incremental operation record sets arranged in the chronological order based on an identifier of a target data table.

### Claim 8 (depends on 1)

The method according to claim 1, wherein synchronizing the incremental operation record set in the N incremental operation record sets to the target database comprises:
selecting, from the Nth incremental operation record set, an incremental operation record related to a target data table based on an identifier of the target data table; and
sending the incremental operation record related to the target data table to the target database, to cause the target database to perform an incremental operation corresponding to the incremental operation record related to the target data table.

### Claim 9 (depends on 1)

The method according to claim 1, wherein synchronizing the incremental operation record set in the N incremental operation record sets to the target database comprises:
sending the Nth incremental operation record set to the target database, to cause the target database to perform an incremental operation corresponding to the Nth incremental operation record set.

### Claim 10 (depends on 2)

The method according to claim 2, wherein generating the validation code of the Nth incremental operation record set comprises:
generating the validation code of the Nth incremental operation record set based on a validation code of an (N−1)th incremental operation record set and the Nth incremental operation record set.

### Claim 11

A data synchronization apparatus used in a database system, the data synchronization apparatus comprising:
at least one processor; and
at least one memory coupled to the at least one processor and storing instructions, which when executed by the at least one processor, cause the data synchronization apparatus to:
obtain, from an incremental log in a source database of the database system, N incremental operation record sets arranged in a chronological order, wherein N is an integer greater than 1, and an Nth incremental operation record set is a current to-be-synchronized incremental operation record set;
determine 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, wherein the target incremental operation record set is an incremental operation record set that is successfully synchronized to a last time of a target database of the database system; and
synchronize an incremental operation record set in the N incremental operation record sets to the target database, wherein the incremental operation record set in the N incremental operation record sets is after the target incremental operation record set.

### Claim 12 (depends on 11)

The data synchronization apparatus according to claim 11, wherein the data synchronization apparatus is further configured to:
generate a validation code of the Nth incremental operation record set; and
send the validation code of the Nth incremental operation record set to the target database after it is determined that the Nth incremental operation record set has been successfully synchronized to the target database.

### Claim 13 (depends on 11)

The data synchronization apparatus according to claim 11, wherein the data synchronization apparatus is configured to determine the target incremental operation record set comprises the data synchronization apparatus is configured to:
obtain a comparison validation code from the target database, wherein the comparison validation code is stored in the target database and is a validation code of a latest incremental operation record set that has been successfully synchronized to the target database;
search for a validation code that is same as the comparison validation code and that is in the validation code of the incremental operation record set that is before the Nth incremental operation record set; and
determine the target incremental operation record set based on the validation code that is the same as the comparison validation code and is in the validation code of the incremental operation record set that is before the Nth incremental operation record set, wherein a validation code of the target incremental operation record set is the same as the comparison validation code.

### Claim 14 (depends on 11)

The data synchronization apparatus according to claim 11, wherein
a type of the source database is different from a type of the target database;
the N incremental operation record sets are N intermediate-format incremental operation record sets; and
the data synchronization apparatus is configured to obtain, from the incremental log in the source database, the N incremental operation record sets arranged in the chronological order comprises the data synchronization apparatus is configured to:
obtain an Nth source-format incremental operation record set from the incremental log in the source database by use of a parser that matches the type of the source database; and
convert the Nth source-format incremental operation record set into an Nth intermediate-format incremental operation record set.

### Claim 15 (depends on 14)

The data synchronization apparatus according to claim 14, wherein the data synchronization apparatus is configured to synchronize the incremental operation record set in the N incremental operation record sets to the target database comprises the data synchronization apparatus is configured to:
convert the Nth intermediate-format incremental operation record set into an Nth target-format incremental operation record set by use of an adapter that matches the type of the target database; and
send the Nth target-format incremental operation record set to the target database, to cause the target database to perform an incremental operation corresponding to the Nth target-format incremental operation record set.

### Claim 16 (depends on 14)

The data synchronization apparatus according to claim 14, wherein the data synchronization apparatus is configured to synchronize the incremental operation record set in the N incremental operation record sets to the target database comprises the data synchronization apparatus is configured to:
select, from the Nth intermediate-format incremental operation record set, an intermediate-format incremental operation record related to a target data table based on an identifier of the target data table;
convert the intermediate-format incremental operation record related to the target data table into a target-format incremental operation record related to the target data table; and
send the target-format incremental operation record related to the target data table to the target database, to cause the target database to perform an incremental operation corresponding to the target-format incremental operation record related to the target data table.

### Claim 17 (depends on 11)

The data synchronization apparatus according to claim 11, wherein the data synchronization apparatus is configured to obtain, from the incremental log in the source database, the N incremental operation record sets arranged in the chronological order comprises the data synchronization apparatus is configured to:
obtain, from the incremental log in the source database, the N incremental operation record sets arranged in the chronological order based on an identifier of a target data table.

### Claim 18 (depends on 11)

The data synchronization apparatus according to claim 11, wherein the data synchronization apparatus is configured to synchronize the incremental operation record set in the N incremental operation record sets to the target database comprises the data synchronization apparatus is configured to:
select, from the Nth incremental operation record set, an incremental operation record related to a target data table based on an identifier of the target data table; and
send the incremental operation record related to the target data table to the target database, to cause the target database to perform an incremental operation corresponding to the incremental operation record related to the target data table.

### Claim 19 (depends on 11)

The data synchronization apparatus according to claim 11, wherein the data synchronization apparatus is configured to synchronize the incremental operation record set in the N incremental operation record sets to the target database comprises the data synchronization apparatus is configured to:
send the Nth incremental operation record set to the target database, to cause the target database to perform an incremental operation corresponding to the Nth incremental operation record set.

### Claim 20 (depends on 12)

The data synchronization apparatus according to claim 12, wherein the data synchronization apparatus is configured to generate the validation code of the Nth incremental operation record set comprises the data synchronization apparatus is configured to:
generate the validation code of the Nth incremental operation record set based on a validation code of an (N−1)th incremental operation record set and the Nth incremental operation record set.
