Transaction savepoint management apparatus and method for distributed database
AssigneeChina Unionpay Co., Ltd.
InventorsJiajing ZHOU, Qingshun LUO, Chenguang PEI, Hao MIAO, Huabei SHI
Life of this patent
Estimating the term…
Loading patent…
AssigneeChina Unionpay Co., Ltd.
InventorsJiajing ZHOU, Qingshun LUO, Chenguang PEI, Hao MIAO, Huabei SHI
Estimating the term…
Proposed are a transaction savepoint management apparatus and method, which may involve: creating, based on a transaction initiation request from a user terminal, a transaction, wherein the transaction includes a plurality of operation instructions, and subsequently accessing at least one of a plurality of databases so as to sequentially execute the plurality of operation instructions according to a time sequence; and if the plurality of operation instructions includes global savepoint establishment instruction, creating and maintaining a global savepoint queue to coordinate the plurality of databases and implement an operation for global savepoints, and based on the global savepoints, triggering a database, involved in this transaction, from among the plurality of databases to establish local savepoints and record an association relationship between each of the local savepoints and the global savepoints. The apparatus and method disclosed in the present invention can be used for transaction savepoint management for a distributed database.
A transaction savepoint management apparatus, comprising at least a control unit configured to create, based on a transaction initiation request received from a user terminal, a transaction comprising a plurality of operational instructions, and access at least one of a plurality of databases to sequentially execute the plurality of operational instructions in time sequence, wherein if the plurality of operational instructions comprise a global savepoint establishment instruction, the control unit is further configured to create and maintain a global savepoint queue so as to coordinate the plurality of databases to implement operations directed to a global savepoint, wherein the control unit is further configured to trigger, based on the global savepoint, a database involved in the transaction from among the plurality of databases to establish a local savepoint, and record an association relationship between each local savepoint and the global savepoint.
A transaction savepoint management method, comprising:
Dependencies are inferred from the claim text.