Database processing method, device and system
A processing method and database technology, which is applied in the database field, can solve the problems of high cost of standby nodes, high cost, delay of active and standby nodes, etc., and achieve the effects of reducing deployment costs, facilitating readability, and reducing data delay
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0063] like figure 2 As shown, the present embodiment provides a database processing method, including:
[0064] Step 201, when the master node executes the modify operation or write operation of the data record, the master node writes the redo log record generated by the modify operation or write operation into the shared storage node, and updates the corresponding dirty data page to The shared storage node;
[0065] Step 202, the replica node reads the redo log record from the shared storage node into memory, so as to reconstruct the data page through the redo log record when needed.
[0066] In this embodiment, the master node stores the redo log records and dirty data pages into the shared storage node, and the replica node can read the redo log records from the shared storage node, and reconstruct the data through the corresponding redo log records when necessary In this way, using a shared storage and multiple nodes realizes the separation of reading and writing of th...
Embodiment 2
[0078] A database processing system applied to relational databases, such as image 3 As shown, it includes: a master node 31, a replica node 32 and a shared storage node 33; wherein, the shared storage node is used to store data pages, rollback pages and redo log records from the master node;
[0079] The master node is configured to write the redo log record generated by the modification operation or write operation into the shared storage node, and write the corresponding dirty data page update to said shared storage node;
[0080] The replica node is configured to read the redo log record from the shared storage node into memory, so as to reconstruct the data page through the redo log record when needed.
[0081] In this embodiment, the master node 31 provides read and write access to users, the copy node 32 provides read-only access to users, and the shared storage node 33 stores data files, rollback files and redo log files, and the data The file contains data pages fr...
Embodiment 3
[0089] like Figure 4 As shown, the present embodiment provides a database system, which may include:
[0090] The write module 41 is configured to write the redo log record generated by the modification operation or the write operation from the master node into the shared storage node when the master node executes the modification operation or the write operation of the data record, and writes the corresponding The dirty data page is updated from the master node to the shared storage node;
[0091] The first reading module 42 is configured to read the redo log record from the shared storage node into the memory of the copy node, so that the copy node can reconstruct the data page through the redo log record when needed.
[0092] In this embodiment, the above-mentioned database processing device can be set in the database system described in the second embodiment. Wherein, the writing module 41 can be set in the master node, and the first reading module 42 can be set in the ...
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