A method to avoid database lock waiting and transaction merge commit
A transaction submission and database technology, applied in the financial field, can solve problems such as performance bottlenecks, achieve the effects of reducing interaction frequency, improving interaction efficiency, and reducing interaction times and time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] The present embodiment adopts two threads to illustrate (multithreading can be adopted in reality (the number of threads is greater than 2), which can double the processing efficiency), as follows:
[0037] Thread1 (Thread 1) pulls a batch of (customizable) transactions from the pending transaction queue, such as MQ or other data structures, wherein, each time Thread1 obtains a transaction, the corresponding message is removed from the pending transaction queue; After a transaction is pulled from the pending transaction queue, Thread2 (thread 2) pulls a batch of transactions from the pending transaction queue, wherein, each time Thread2 acquires a transaction, the corresponding message is removed from the pending transaction queue.
[0038] Thread1 first screens out transaction-related accounts from the pulled transactions. Transaction-related accounts such as figure 2 account1 to account5 in . And query whether the "account LIST" in processing includes account1 to ac...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

