首页>
外国专利>
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.
展开▼