Method and system for concurrency control
A sending module and storage server technology, applied in the computer field, can solve difficult problems such as consistency of data items
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] like figure 1 As shown, the embodiment of the present invention provides a concurrency control method, including:
[0044] Step 101: the originating storage server receives the global transaction, and divides the global transaction into multiple sub-transactions;
[0045] Step 102: If there is a write operation sub-transaction in the divided sub-transactions, the originating storage server selects the first number of replica storage servers and sends a lock request to each selected replica storage server;
[0046] Step 103: Each selected replica storage server receives the lock request, and if it agrees to the lock request, sends a response message to the originating storage server;
[0047] Step 104: The originating storage server receives the response message, and if it receives the second number of sign-to-sign messages, it sends the specific operation information of the sub-transaction of the write operation to the replica storage server that sent the response mess...
Embodiment 2
[0050] The embodiment of the present invention provides a concurrency control method. Wherein, in the cloud computing environment, the database adopts the form of originating storage server plus replica storage server, wherein each originating storage server includes multiple replica storage servers, and the content in each secondary storage server and its corresponding originating storage server The contents of the server are exactly the same. see figure 2 , the method includes:
[0051] Step 201: The originating storage server receives the global transaction initiated by the application program, and divides the global transaction into multiple sub-transactions;
[0052] Wherein, the global catalog of the originating storage server stores relevant information of each global transaction. Specifically, the originating storage server receives the global transaction Ti initiated by the application program, and the transaction manager of the originating storage server divides ...
Embodiment 3
[0157] like image 3 As shown, the embodiment of the present invention is a concurrency control system, originating storage server 301 and replica storage server 302;
[0158] The originating storage server 301 includes a division module 3011, a selection module 3012 and a first sending module 3013;
[0159] A division module 3011, configured to receive a global transaction, and divide the received global transaction into multiple sub-transactions;
[0160] A selection module 3012, configured to select a first number of replica storage servers and send a lock request to each selected replica storage server if there is a subtransaction of a write operation in the divided subtransactions;
[0161] The replica storage server 302 is configured to receive the lock request, and if the lock request is agreed, then send a response message to the originating storage server 301;
[0162] The first sending module is configured to receive a response message, and if a second number of si...
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