Data migration method and system
A technology for data migration, which is applied in the computer field and can solve problems such as time-consuming spikes, database blocking, and source database blocking
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0064] In Embodiment 1, the implementation logic of the asynchronous DUMP command may include: the main thread creates an asynchronous DUMP task, and transmits the asynchronous DUMP task to the asynchronous thread; after the asynchronous thread obtains the asynchronous DUMP task, serializes the data to be migrated, and the The object is transferred to the main thread; the main thread releases the asynchronous DUMP task.
[0065] The implementation logic of the asynchronous RESTORE command may include: the main thread creates an asynchronous RESTORE task, and transfers the asynchronous RESTORE task to the asynchronous thread; after the asynchronous thread obtains the asynchronous RESTORE task, deserializes the serialized object, and transfers the obtained deserialized object To the main thread; the main thread inserts the deserialized object into the target database and releases the asynchronous RESTORE task.
[0066] The implementation logic of the asynchronous MIGRATE command...
Embodiment 2
[0068] In Embodiment 2, the implementation logic of the asynchronous DUMP command may include: the main thread calculates the data volume of the data to be migrated, and judges whether the data volume of the data to be migrated is greater than or equal to a preset first threshold; if the data volume of the data to be migrated is less than the first threshold, the main thread serializes the data to be migrated; if the data volume of the data to be migrated is greater than or equal to the first threshold, the asynchronous DUMP command in Embodiment 1 is executed to implement the logic.
[0069] The implementation logic of the asynchronous RESTORE command may include: the main thread judges whether the data volume of the serialized object is greater than or equal to the preset second threshold; if the data volume of the serialized object is less than the second threshold, the main thread deserializes the serialized object and insert the obtained deserialized object into the target...
Embodiment 3
[0106] In the third embodiment, in the implementation logic of the asynchronous DUMP command and the asynchronous RESTORE command, after the main thread increments the corresponding reference count, both involve write protection operations, which are combined below Image 6 Describe the implementation process of the write protection operation.
[0107] Image 6 It is a flow chart of realizing the write protection operation in the third embodiment of the present invention. Such as Image 6 As shown, the write protection operation in the asynchronous DUMP command and the asynchronous RESTORE command is implemented by the main thread, and the specific implementation process is as follows:
[0108] (1) The main thread judges whether all the keys contained in the current write command have been traversed, and if the traverse has not been completed, execute (2); if the traverse has been completed, execute (5). The write commands in this implementation logic refer to all protected...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


