Unlock instant, AI-driven research and patent intelligence for your innovation.

Non-relational database transaction processing method and device and electronic equipment

A non-relational, transaction processing technology, applied in the computer field, can solve problems such as lack of transaction processing methods and failure to meet business requirements

Pending Publication Date: 2019-07-16
ALIBABA GRP HLDG LTD
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, in a distributed system, there are a large number of scenarios where relational databases and non-relational databases such as NoSql database products are mixed, and only some relational databases support the XA protocol, while non-relational databases such as NoSql databases do not support the XA protocol. Therefore, there is no effective transaction processing method for the scenario where the NoSql database is selected, and it cannot meet the business requirements

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
  • Non-relational database transaction processing method and device and electronic equipment
  • Non-relational database transaction processing method and device and electronic equipment
  • Non-relational database transaction processing method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0104] Based on the idea of ​​the above-mentioned non-relational database transaction processing scheme, such as Figure 5a As shown, it is the flow of the non-relational database transaction processing method shown in the embodiment of the present invention Figure 1 , the execution of this method is mainly figure 1 or figure 2 The non-relational database resource manager shown in , mainly involves the processing flow of the first phase of the 2PC phase of the non-relational database in the distributed transaction operation mode. Such as Figure 5a As shown, the non-relational database transaction processing method includes the following steps:

[0105] S510, receiving a transaction request sent by the client for transaction operation on a non-relational database, the transaction request includes: the operation content of this transaction and the transaction ID of the global transaction to which this transaction belongs; wherein, the client that is figure 1 Initiator of...

Embodiment 2

[0126] Based on the idea of ​​the above-mentioned non-relational database transaction processing scheme, such as Figure 5b As shown, it is the flow of the non-relational database transaction processing method shown in the embodiment of the present invention Figure II , the execution of this method is mainly figure 1 or figure 2 The non-relational database resource manager shown in , mainly involves the processing flow of the first phase of the 2PC phase of the non-relational database in the distributed transaction operation mode. Such as Figure 5b As shown, the non-relational database transaction processing method includes the following steps:

[0127] S550, during the processing of the global transaction including the transaction operation for the non-relational database, declare to the transaction coordinator that the transaction operation of the non-relational database is a transaction branch in the global transaction, and obtain the transaction branch from the trans...

Embodiment 3

[0139] Based on the idea of ​​the above-mentioned non-relational database transaction processing scheme, such as Figure 6 As shown, it is the flow of the non-relational database transaction processing method shown in the embodiment of the present invention Figure II , the execution of this method is mainly figure 1 or figure 2 The non-relational database resource manager shown in , mainly involves the processing flow of the second phase (transaction submission) of the 2PC phase of the non-relational database in the distributed transaction operation mode. Such as Figure 6 As shown, the non-relational database transaction processing method includes the following steps:

[0140] S610, receiving the commit indication of the transaction branch sent by the transaction coordinator, the transaction branch to be submitted specified in the commit indication is the transaction branch corresponding to the transaction operation of the non-relational database; the commit indication i...

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 embodiment of the invention provides a non-relational database transaction processing method and device and electronic equipment, and the method comprises the steps: receiving a transaction request which is sent by a client and carries out transaction operation on a non-relational database; sending the transaction ID to a transaction coordinator to declare a transaction branch, and obtaining the branch ID of the transaction branch from the transaction coordinator; analyzing the operation content of the current transaction branch, executing transaction operation on the non-relational database according to an analysis result, and recording a corresponding transaction log; sending branch state information of successful or failed execution of the current transaction branch to a transactioncoordinator; and receiving a submission or rollback indication of the transaction branch sent by the transaction coordinator, and carrying out submission or rollback operation on the corresponding transaction branch. According to the scheme provided by the embodiment of the invention, the non-relational database can support a 2PC transaction processing mode, so that a distributed transaction control scheme across multiple heterogeneous data storage resources becomes possible.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a non-relational database transaction processing method, device and electronic equipment. Background technique [0002] In the prior art, a two-phase commit protocol (Two-Phase Commit, 2PC) is often used in the field of distributed transactions to solve distributed transaction problems involving multiple data resources, and a typical representative of 2PC is XA. XA is a specification for distributed transaction processing proposed by the X / Open organization. The XA specification mainly defines the interface between the transaction manager (Transaction Manager) and the local resource manager (Local Resource Manager). Relational databases such as Oracle and MySQL have implemented the XA protocol. Therefore, the distributed transaction problems involving the above database systems can be solved by XA. [0003] However, in a distributed system, there are a large number ...

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
IPC IPC(8): G06F16/25G06F16/21
CPCG06F16/21G06F16/252G06Q20/00G06F16/2379G06F11/1474G06F2201/87Y02D10/00
Inventor 张松树姜宇
Owner ALIBABA GRP HLDG LTD