Data migration method and device

A data and database technology, applied in the field of communications, can solve the problems of increased processing pressure on the master node, high data synchronization delay, and large waste of resources, so as to reduce the pressure of redistribution, realize incremental synchronization, and ensure real-time synchronization. Effect

Inactive Publication Date: 2017-11-17
BEIJING QIHOO TECH CO LTD
View PDF11 Cites 25 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the inventor found in the process of realizing the present invention that there are at least the following defects in the prior art: the data in the original database is usually transferred to the target database through a third-party data container
For example, the data in the original database can be copied to the disk, and then copied to the target database through the disk, but the data migration speed of this method is slow, and the real-time synchronization of the data in the original database and the target database cannot be realized. It will affect the normal operation of the online database; or, by expanding the slave database to the original database, the data is migrated from the slave database to the target database, but this method wastes a lot of resources, and the synchronization of data in the target database and the original database The delay is high; and, when the target database is a distributed database containing multiple storage nodes, in the prior art, all migration data is usually sent directly to the master node of the distributed database, and the distributed master node then performs the migration Data is redistributed. However, when the amount of migrated data is large, the processing pressure on the master node increases greatly, so that the processing capacity of the master node limits the overall data migration efficiency.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data migration method and device
  • Data migration method and device
  • Data migration method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0017] figure 1 A flow chart of a data migration method provided according to an embodiment of the present invention is shown, and the method is suitable for migrating a data table to be migrated from an original database to a target database, wherein the target database is a distributed database containing multiple storage nodes database, the method includes:

[0018] In step S110, the full amount of data corresponding to the dat...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a data migration method and device used for migrating a data table from an original database to a target database of a distributed database containing multiple storage nodes. The method comprises the steps that full-amount data corresponding to a to-be-migrated data table is acquired, and a distribution column is set for each data record in the full-amount data; all the data records are migrated into all the storage nodes of the target database respectively according to the distribution columns; log point location information corresponding to the full-amount data is determined; and a log record generated after the log point location information is acquired, data operation corresponding to the log record is determined, and the data operation is executed according to the full-amount data stored in all the storage nodes of the target database. By the adoption of the scheme, the data can be migrated to the distributed database containing the storage nodes under the condition of not influencing online business, the situation that the processing capability of a distributed main node influences data migration efficiency is avoided, the data migration efficiency is improved, and real-time synchronization of the data is guaranteed.

Description

technical field [0001] The present invention relates to the technical field of communications, and in particular to a data migration method and device. Background technique [0002] With the development of information technology, the frequency of information system replacement or adjustment is getting higher and higher. For example, in many situations, such as transferring the test database to the online business database, updating and upgrading old equipment, performing maintenance operations on equipment that has been overloaded for a long time, or changing the computer room, it is necessary to migrate data from one database to another . [0003] However, the inventor found in the process of implementing the present invention that at least the following defects exist in the prior art: currently, the data in the original database is usually transferred to the target database through a third-party data container. For example, the data in the original database can be copied...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/214G06F16/27
Inventor 刘畅张恒
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products