Patent ID: 11860833
Assignee: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G  H | IPC G  H

Claim 12:
13. A computer program product comprising instructions stored on a non-transitory computer-readable medium that, when executed by one or more processors, cause an apparatus to:
store first data associated with a first data table in a first node set in a distributed database;
filter, before migration, the first data in the first node set to obtain second data that is associated with the first data table and that is not stored in a second node set in the distributed database;
migrate the second data that is associated with the first data table from the first node set to the second node set in the distributed database by:
selecting, from unmigrated data in the first data table that corresponds to a currently executed distributed transaction, third data that meets a migration condition; and
migrating the third data from the first node set to the second node set, wherein the third data is locked in a migration process, and wherein the migration condition comprises either an amount of the third data that is migrated through the currently executed distributed transaction is less than or equal to a specified threshold of the amount of the third data or a migration duration of migration through the currently executed distributed transaction is less than or equal to a specified duration threshold;

receive, in a process of migrating the second data, a target service request for the first data table;
obtain, in response to the target service request, a third node set that is configured to respond to the target service request, wherein the third node set comprises at least a first portion of the first data in the first node set and at least a second portion of the second data in the second node set, and wherein the third node set comprises a first data node; and
send the target service request to the first data node in the third node set to instruct the first data node to respond to the target service request.