Incremental data verification method, device, equipment, medium and program product

CN119441217BActive Publication Date: 2026-08-28CHINA MOBILE INFORMATION TECHNOLOGY CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411465910.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2026-08-28
Estimated Expiration
2044-10-18

AI Technical Summary

Technical Problem

[0004]然而,上述对增量数据进行校验的方法,如果对增量数据进行校验的时间过长,可能会错过一些在当前时间点之前发生的变更的数据,导致对比结果的不准确

Benefits of technology

[0023]在本申请实施例中,在确定完成源数据库到目标数据库的全量数据的迁移和校验的情况下,获取源数据库在第一时间段内的第一增量数据和目标数据库在第一时间段内的第二增量数据,然后对第一增量数据和第二增量数据进行校验,如此在校验增量数据时仅校验上次校验之后到当前时间段内的增量数据,而非是对所有的增量数据均进行校验,如此减少了增量数据迁移时校验的时间,提升了增量数据校验的效率。此外,在对第一增量数据和第二增量数据进行校验时,通过对源数据库和目标数据库中的每个数据库中每个表格中的每一行的增量数据,将该行的各列增量数据进行拼接后转换为字符串类型的数据,得到每一行的增量数据所对应的字符串型数据,如此在后续将源数据库和目标数据库中的增量数据进行比对时,每个表格中每一行仅比对一次,无需比对多次,进一步提升了增量数据校验的效率,然后将每一行的增量数据所对应的字符串型数据映射为固定长度的整数型数据,得到每一行的增量数据所对应的整数型数据,通过默克尔二叉树算法对源数据库各表格中每一行增量数据所对应的整数型数据进行计算,得到与源数据库对应的第一默克尔二叉树,以及通过默克尔二叉树算法对目标数据库各表格中每一行增量数据所对应的整数型数据进行计算,得到与目标数据库对应的第二默克尔二叉树,将第一默克尔二叉树和第二默克尔二叉树进行比对,得到第一增量数据和第二增量数据之间的校验结果,如此对第一增量数据和第二增量数据进行字符串类型转换、映射和比对,确保了第一增量数据和第二增量数据的一致性,提升了第一增量数据和第二增量数据的校验准确性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119441217B_ABST
    Figure CN119441217B_ABST
Patent Text Reader

Abstract

The application discloses a kind of incremental data checking method, device, equipment, medium and program product, method includes: after determining the migration and checking of full data of source database to target database are completed, respectively, the first incremental data and the second incremental data of source database and target database in first time period are obtained, the string type data is obtained after the incremental data of each column of target line in the first table in the first database is spliced and converted, the string type data is mapped to integer type data, and integer type data is obtained;The integer type data in each table of source database and target database is calculated by Merkle binary tree algorithm, and first Merkle binary tree and second Merkle binary tree are obtained respectively;According to first Merkle binary tree and second Merkle binary tree, a checking result is obtained, the problem of inaccurate incremental data checking result in the prior art is solved, and the accuracy of incremental data checking is improved.
Need to check novelty before this filing date? Find Prior Art

Citation Information

Patent Citations

  • Data verification method and device, computing equipment and storage medium

    CN113626416A