×

Transaction Processing Method and Apparatus

  • US 20190324760A1
  • Filed: 06/28/2019
  • Published: 10/24/2019
  • Est. Priority Date: 12/30/2016
  • Status: Active Grant
First Claim
Patent Images

1. A transaction processing method implemented by a network device, wherein a transaction comprises a series of operations on a tree data structure, wherein the tree data structure comprises a base tree, and wherein the transaction processing method comprises:

  • obtaining M transactions from a transaction queue, wherein the M transactions are transactions that perform an update on a same base tree, wherein a first transaction and a second transaction are any two transactions in the M transactions that do not conflict wherein a conflict occurs when a common subtree of the first transaction is either a father or a child of a common subtree of the second transaction, wherein a common part of subtrees formed by operations performed on the base tree in any transaction constitutes a common subtree of the transaction, and wherein M is an integer greater than or equal to two;

    performing reverse shallow copying in parallel for the M transactions to generate M temporary trees corresponding to the M transactions, wherein a temporary tree corresponding to each transaction comprises a tree that is formed after the transaction performs an update on the base tree;

    merging M temporary trees; and

    replacing the base tree with a merged temporary tree.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×