Method for processing distributed transactions in distributed database system
A technology of distributed transactions and processing methods, applied in the field of distributed transaction processing in distributed database systems, can solve problems such as increasing the possibility of transaction conflicts, declining transaction processing performance, prolonging lock holding time, etc. Time-efficient, easy-to-engineer, performance-enhancing effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] see figure 1 , this embodiment includes lock mode, data access, transaction preparation, transaction submission and transaction rollback, wherein the lock mode is used to protect data during transaction data access, early release of locks, and transaction rollback. (Read), write (Write), read in advance (E-Read), write in advance (E-Write), abort (Abort) five, when the current E-Write / E-Read lock mode is compatible with any lock mode , when the current lock mode is arbitrary, it is compatible with abort (Abort) locks, and when the current lock mode is Abort, it is not compatible with read locks and write locks.
[0028] Wherein, the data access step includes the following steps:
[0029] Step A1: The transaction locks the record X in read / write mode;
[0030] Step A2: The transaction finds the In_xact context of the transaction that recently updated the record X through the utid on the record X, and determines whether its state state is COMMITTED / ABORTED, and the proc...
Embodiment 2
[0053] The lock modes used in this embodiment include five lock modes: Read, Write, E-Read, E-Write, and Abort. It should be noted here: when it is currently in E-Write / E-Read lock mode, it is compatible with any lock mode, and the effect is equivalent to no lock; when it is currently in any lock mode, it is compatible with abort (Abort) lock; currently it is Abort lock mode, incompatible with read locks and write locks. The lock compatibility matrix is shown below.
[0054] Table 1
[0055]
[0056] The definition of the dependency in this embodiment is as follows: Assuming that there are two transactions A and B, if transaction A accesses the data written by transaction B, then transaction B is an input dependency of transaction A, and transaction A is an output dependency of transaction B. .
[0057] In order to implement commit dependencies, for each transaction T, the following information should be maintained in the context of the transaction: the transaction's r...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com