Database operation separation method and database operation separation system
A separation method and database technology, applied in the information field, can solve problems such as data inconsistency, performance loss, and increase complexity, so as to reduce concurrency pressure, improve performance, and reduce complexity.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] see figure 1 , is a flow chart of a database operation separation method provided in Embodiment 1 of the present invention. The method in the embodiment of the present invention is applicable to a database operation separation system, and the system includes a client, a master database, and a candidate slave database connected to the master database.
[0026] The method includes:
[0027] Step 110, the client establishes a first connection with the master database, and establishes a second connection with the target slave database;
[0028] Wherein, the target slave database is determined from candidate slave databases connected to the master database by the master database according to the operation separation connection request sent by the client.
[0029] Step 120, the client determines the operation type corresponding to the operation request included in the operation transaction according to the input operation transaction;
[0030] This step is specifically to ...
Embodiment 2
[0041] see figure 2 , is a flowchart of a database operation separation method provided in Embodiment 2 of the present invention. On the basis of the above-mentioned embodiments, this embodiment provides that the client assigns the master database or the candidate slave database connected to the master database based on the preset operation request allocation strategy according to the operation type corresponding to the current operation request. A preferred solution for a target to execute the current operation request from the database.
[0042] In this embodiment, the operation type may include: read operation, write operation, commit operation and rollback operation.
[0043] This preferred method includes:
[0044] Step 210, if the operation type corresponding to the current operation request is a read operation, and in the operation transaction, the operation types corresponding to the operation requests before the current operation request are all read operations, then...
Embodiment 3
[0062] see image 3 , is a flowchart of a database operation separation method provided in Embodiment 3 of the present invention. On the basis of the foregoing embodiments, this embodiment provides an optimal solution in which the master database synchronizes the operation data in the master database to the candidate slave database based on a preset data consistency policy.
[0063] This preferred method includes:
[0064] Step 310, if the master database obtains the commit operation sent by the client, the master database sends the log contained in the log buffer of the master data to the candidate slave database, so that the candidate slave The database redoes accordingly according to the log;
[0065] In this step, after receiving the commit operation sent by the client, the master database sends the log contained in the log buffer of the master data to the candidate slave database, so that the candidate slave database Redo accordingly so that the master database is cons...
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