首页|数据库间数据同步批量入库工具分析

数据库间数据同步批量入库工具分析

扫码查看
针对在数据库之间进行数据同步时存在的问题,提出数据库间数据同步批量入库工具.对于多线程的算法,创建至少两个用于读取事务日志的子线程,并行读取源端数据库事务日志的不同内容块;每个子线程读取的内容块并行生成SQL执行语句、并行创建SQL文件,并将SQL文件的文件名写入待执行文件序列.对于单线程算法,通过解析源端数据库事务日志实现同步的技术背景下,批量执行SQL命令,提高数据同步效率.工具使得解析效率成倍提升,从而大幅提高数据同步效率.
An analysis to Batch Warehousing Tool for Data Synchronization between Databases
Propose a batch storage tool for data synchronization between databases to address the issues that arise during data synchronization between databases.For multi-threaded algorithms,create at least two sub threads for reading transaction logs and parallel read different content blocks of the source database transaction logs;Each sub thread reads content blocks and generates SQL execution statements in parallel,creates SQL files in parallel,and writes the file name of the SQL file into the sequence of executable files.For single threaded algorithms,under the technical background of synchronizing by parsing the transaction logs of the source database,batch execution of SQL commands can improve data synchronization efficiency.The tool signif-icantly improves the efficiency of data synchronization by doubling the parsing efficiency.

databasesdata synchronizationsingle threadedmulti-threadedSQL

亓莹、肖哲凯

展开 >

济南瀚高基础软件股份有限公司,山东 济南 250000

数据库 数据同步 单线程 多线程 SQL

2024

长江信息通信
湖北通信服务公司

长江信息通信

影响因子:0.338
ISSN:2096-9759
年,卷(期):2024.37(3)
  • 5