Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Method for performing data increment copying through hash value comparison

A technology of incremental replication and data, which is applied in database distribution/replication, electronic digital data processing, structured data retrieval, etc. It can solve problems such as difficult application, uncapturable time stamp method, poor extraction performance, etc., to improve comparison Efficiency, avoiding the effect of primary key column value query

Active Publication Date: 2015-12-09
PLA PEOPLES LIBERATION ARMY OF CHINA STRATEGIC SUPPORT FORCE AEROSPACE ENG UNIV
View PDF3 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Among them, the trigger method does not need to perform the comparison step in the extraction process, so the performance of incremental extraction is better, but the trigger method needs to directly create a trigger on the dataset table and write a temporary table at the same time. For frequent operations The business system may have a certain performance loss, especially when performing batch operations on the business table, row-level triggers will have a serious impact on performance; the timestamp method cannot capture delete operations, and needs to be used in conjunction with other methods. This method needs to modify the table structure of the data source system. For relational database products that do not support automatic update of the timestamp field, the function of the business system must also be modified so that it will display the update table when the source table performs each operation. Timestamp field; the full table comparison method requires a complicated comparison process to identify changed records, and the extraction performance is poor. In addition, some temporary tables need to be created, which is also rejected in some occasions; based on the database In the way of log analysis, because most database products only allow specific groups of users or even only DBAs to perform log analysis, this makes it impossible to implement the restrictions on database permissions open to the data integration process; specific database methods (OracleCDC methods) are limited The type of database is limited, it is difficult to apply widely

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 for performing data increment copying through hash value comparison
  • Method for performing data increment copying through hash value comparison
  • Method for performing data increment copying through hash value comparison

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. However, the examples given are not intended to limit the present invention.

[0028] A method for incremental data replication using hash value comparison, such as figure 1 shown, including the following steps:

[0029] Step 1, determine the primary key columns and non-primary key columns of the source table;

[0030] Step 2, calculate the hash value of the non-primary key column value of the current record; calculate the hash value of the non-primary key column value, arrange the non-primary key column values ​​into a string, and calculate the hash value of the string.

[0031] Step 3, storing the primary key column value of the current record and the hash value corresponding to the primary key column value in file 1 in the ascending order of the...

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 a method for performing data increment copying through hash value comparison. The method includes the following steps that a primary key sequence and a non-primary key sequence of a source list are determined; the hash value of the currently recorded non-primary key sequence value is calculated; the currently recorded primary key sequence value and the harsh value are stored in a first file according to the currently recorded primary key value ascending sequence; the harsh value of the non-primary key sequence value recorded after the change is calculated according to the primary key sequence value ascending sequence recorded after the change; data comparison is performed, data increment is obtained, and the data increment is marked and classified into a database; the primary key sequence value recorded after the change and the harsh value are stored in a second file; the first file is covered with the second file, and data increment copying is completed. The method is not limited by database types and does not intrude into the database or affect the database, and comparison efficiency is improved.

Description

technical field [0001] The invention relates to a method for duplicating incremental data by using hash value comparison. Specifically, the calculated hash value is used to complete the capture of incremental data through comparison. Background technique [0002] In the process of data integration, the replication of incremental data is always a key point and a difficult point. To achieve incremental extraction, changing data needs to be captured quickly and accurately. A good incremental extraction mechanism requires that the integration process can accurately capture the changing data in the database at a certain frequency, and at the same time not cause too much pressure on the database. Affect existing business use. Compared with full extraction, the design of incremental extraction is more complicated. [0003] The existing incremental extraction mechanisms mainly include: trigger method, time stamp method, full table comparison method, database log analysis method, a...

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/2255G06F16/27
Inventor 曾德贤李智王鹏殷智勇马志昊刁华飞韩雷邢维艳
Owner PLA PEOPLES LIBERATION ARMY OF CHINA STRATEGIC SUPPORT FORCE AEROSPACE ENG UNIV
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
Eureka Blog
Learn More
PatSnap group products