Check patentability & draft patents in minutes with Patsnap Eureka AI!

Data synchronization method and device capable of realizing rapid data loading

A technology for data synchronization and data loading, which is applied in database update, structured data retrieval, special data processing applications, etc., can solve problems such as low efficiency, trouble, and large performance loss, and achieve simplified process configuration, reduced performance loss, and improved The effect of synchronization efficiency

Pending Publication Date: 2020-04-17
WUHAN DAMENG DATABASE
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The current common data integration tools support the above forms of batch loading, all require that the loaded data files must already exist on the disk, and cannot directly perform batch loading of data from the data source to the destination table.
To use batch loading, the user must first export the source table data to a file, and then use the batch loading command to load the data. The two steps must be executed serially, which is cumbersome, inefficient and has a large performance loss.

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 synchronization method and device capable of realizing rapid data loading
  • Data synchronization method and device capable of realizing rapid data loading
  • Data synchronization method and device capable of realizing rapid data loading

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] The embodiment of the present invention provides a data synchronization method that can realize fast data loading. In this method, the destination database (ie, the destination end) is a relational database, and the data source end is not limited, and can be various types of data sources. Such as relational databases, message queues, XML files, KV databases, document databases, etc.

[0049] Compared with the traditional data synchronization process, the present invention mainly improves the data loading step, so that it can use various database-specific batch loading commands, thereby improving performance. Such as image 3 As shown, the data loading node in the present invention does not simply fetch data from the data cache, and then calls the jdbc / odbc interface to write the data into the destination database, but adopts a producer-consumer concurrency model, and multiple threads run in parallel Collaborative work, that is, there are producer threads, task queues a...

Embodiment 2

[0087] On the basis of the data synchronization method that can realize fast data loading provided by the above-mentioned embodiment 1, the present invention also provides a data synchronization device that can realize the above-mentioned method and can realize fast data loading, such as Figure 7 Shown is a schematic diagram of the device architecture of the embodiment of the present invention. The data synchronization device capable of fast loading of data in this embodiment includes one or more processors 21 and memory 22 . in, Figure 7 A processor 21 is taken as an example.

[0088] The processor 21 and the memory 22 may be connected via a bus or in other ways, Figure 7 Take connection via bus as an example.

[0089] The memory 22 is a non-volatile computer-readable storage medium that can realize fast loading of data, and can be used to store non-volatile software programs, non-volatile computer-executable programs and modules, as in the embodiment The data synchron...

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 relates to the technical field of data synchronization, in particular to a data synchronization method and device capable of achieving rapid data loading, and the method comprises the steps that: data is read from a data source, and the read data is put into a cache; the producer thread generates a plurality of data files from the data in the cache in batches, and puts the generateddata files into a task queue; the consumer thread calls a special batch data loading command of the target database, and loads the to-be-loaded data files in the task queue to the target database oneby one, wherein the data file generation process corresponding to the producer thread and the data batch loading process corresponding to the consumer thread are carried out in parallel. According tothe method, a producer-consumer model is adopted, the data files are continuously generated in batches during loading, the loading commands special for the target database are called to load the data,the generation of the data files and the execution of the data loading commands can be performed in parallel, the performance loss during serial execution is reduced, and the synchronization efficiency is improved.

Description

【Technical field】 [0001] The invention relates to the technical field of data synchronization, in particular to a data synchronization method and device capable of realizing fast data loading. 【Background technique】 [0002] At present, a typical data synchronization process usually includes two steps: one is to read the data from the data source and put it in the cache, that is, data reading; the other is to read the data from the cache and load it into the destination database, that is, the data load. Assuming that the source is a relational database, the current typical data synchronization process is as follows figure 1 As shown in , the data loading process generally calls the JDBC (Java Data Base Connectivity) or ODBC (Open Database Connectivity) interface to realize the access to the target database. Both JDBC and ODBC are general-purpose database programming interfaces, which can provide a complete set of programming interfaces independent of any specific database,...

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
IPC IPC(8): G06F16/23G06F16/27
CPCG06F16/2308G06F16/2386G06F16/27
Inventor 梅纲付铨周淳张驻西
Owner WUHAN DAMENG DATABASE
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More