Method and device for concurrent loading of database data

A database and data technology, applied in the field of data processing, can solve the problems of massive data backlog, slow data loading, and difficulty in real-time synchronization, and achieve the effect of rationally using resources, ensuring loading performance, and improving loading efficiency.

Active Publication Date: 2020-06-30
农信银资金清算中心有限责任公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1) Use data migration tools or backup recovery tools to copy the data in the original database to the disk, and then copy the data to the target database through the disk. This method is slow in loading data and cannot realize real-time synchronization of the original database and target database data.
[0005] 2) The target end single-threadedly executes SQL (Structured Query Language) statements for data loading, which ensures the consistency of transactions, but this method is inefficient for data loading, which easily leads to a backlog of massive data at the target end, making it difficult to achieve real-time synchronization
[0006] 3) Multiple queues on the target end load data concurrently, which improves loading efficiency, but it is difficult to ensure transaction consistency; on the other hand, due to the lack of a queue balancing mechanism, some queues are idle, while some queues still have a large number of data files Waiting for loading, resulting in waste of resources

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
  • Method and device for concurrent loading of database data
  • Method and device for concurrent loading of database data
  • Method and device for concurrent loading of database data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] The specific embodiments of the present invention will be further described below in conjunction with the accompanying drawings. The following examples are only used to illustrate the technical solution of the present invention more clearly, but not to limit the protection scope of the present invention.

[0064] figure 1 It shows a schematic flowchart of a method for concurrent loading of database data provided by an embodiment of the present invention, as shown in figure 1 As shown, the concurrent loading method of database data in this embodiment includes:

[0065] S1. The target end receives the data file sent by the source end.

[0066] It can be understood that the data file is that the source end process sets different concurrent export parameters according to the resource occupancy of the source end production host, and reads the source end process in a direct path export method according to the set export parameters in the full volume stage. The data file of...

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 concurrent loading method and device for database data. The method comprises: receiving, by a target end, data files sent by a source end; sequentially storing the data filesin different loading directories of the target end by exporting different tables from big to small data volumes of the tables based on bottom data blocks of a statistical table in a full-volume dataloading phase to realize multi-process / thread concurrent loading of the target end; and storing the data files in different loading directories of the target end from big to small data volumes based on the incremental data of the statistical table in an incremental data loading phase to realize multi-process / thread concurrent loading of the target end; wherein the entire process of the multi-process / thread concurrent loading of the target end is sequential loading in processes / threads and is concurrently executed between the processes / threads. The database data can be concurrently loaded to improve the loading efficiency and realize the real-time performance of data synchronization. By cooperating with a multi-queue equalization mechanism, the loading task of each queue is averaged, resources are utilized reasonably, and the overall loading performance is ensured.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of data processing, and in particular to a method and device for concurrent loading of database data. Background technique [0002] The database is the core component of the application business system, and the stability of the database and the continuity of the business are the most concerned issues in the application business system. [0003] In the process of data synchronization, the loading of massive data is often involved. The existing mass data loading methods have the following problems: [0004] 1) Use a data migration tool or a backup recovery tool to copy the data in the original database to the disk, and then copy it to the target database through the disk. This method has a slow data loading speed and cannot realize real-time synchronization of the original database and the target database. [0005] 2) The target end single-threadedly executes SQL (Structured Query L...

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 Patents(China)
IPC IPC(8): G06F16/25
Inventor 白崇东张增广李远卓向红艳刘玉刘伟佳李希民潘自强
Owner 农信银资金清算中心有限责任公司
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