首页> 外国专利> TRANSACTION PROCESSING METHOD AND APPARATUS, DEVICE, STORAGE MEDIUM AND DATABASE

TRANSACTION PROCESSING METHOD AND APPARATUS, DEVICE, STORAGE MEDIUM AND DATABASE

机译:事务处理方法和装置,设备,存储介质和数据库

摘要

A transaction processing method and apparatus, a device, a storage medium and a database. The transaction processing method comprises: receiving a distributed transaction, wherein the distributed transaction corresponds to a plurality of data read/write operations (101); sending corresponding data read/write instructions to data nodes respectively corresponding to the plurality of data read/write operations (102); if the plurality of data read/write operations relate to a plurality of data nodes, determining a master data node and a slave data node from the plurality of data nodes (103); sending a transaction log write instruction to the master data node; and using a two-phase commit protocol to control the slave data node to commit the received data read/write instruction, and using a one-phase commit protocol to control the master data node to commit the received data read/write instruction and the transaction log write instruction (104). In the distributed transaction commit process, as the master data node uses the one-phase commit protocol rather than the two-phase commit protocol, the overall number of network communications is reduced, thereby facilitating improving the transaction committing processing efficiency.
机译:事务处理方法和装置,设备,存储介质和数据库。事务处理方法包括:接收分布式事务,其中分布式交易对应于多个数据读/写操作(101);将相应的数据读/写指令发送到分别对应于多个数据读/写操作(102)的数据节点;如果多个数据读/写操作涉及多个数据节点,则从多个数据节点确定主数据节点和从数据节点(103);向主数据节点发送事务日志写指令;并使用两阶段提交协议来控制从数据节点以提交接收的数据读/写指令,并使用单相提交协议来控制主数据节点以提交所接收的数据读/写指令和事务日志写指令(104)。在分布式事务提交过程中,由于主数据节点使用单相提交协议而不是两相提交协议,因此减少了网络通信的总数,从而促进了改善事务提交处理效率的过程。

著录项

  • 公开/公告号WO2021052237A1

    专利类型

  • 公开/公告日2021-03-25

    原文格式PDF

  • 申请/专利权人 ALIBABA GROUP HOLDING LIMITED;

    申请/专利号WO2020CN114455

  • 发明设计人 FU YU;

    申请日2020-09-10

  • 分类号G06F9/445;G06F9/46;

  • 国家 CN

  • 入库时间 2022-08-24 17:57:06

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号