Method and device for redoing logs of database records
A database and log technology, applied in the computer field, can solve problems affecting the processing speed of the database system, system bottlenecks, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0096] The embodiment of the present invention provides a method for database recording redo log, refer to figure 1 , the processing flow of this method may include:
[0097] Step 101, receiving a log record request, where the log record request carries a transaction identifier and log information.
[0098] Step 102, judging whether the log record request is the first log record request corresponding to the transaction identifier, if yes, execute step 103, otherwise, execute step 104.
[0099] Step 103, select part of the cache space in the redo cache, create a transaction cache block corresponding to the transaction ID, and record the log information and the corresponding global sequence information into the transaction cache block. Wherein, the global sequence information records the time sequence of the log information among all the log information.
[0100] Step 104, determine the currently used transaction cache block among the established transaction cache blocks corre...
Embodiment 2
[0104] The embodiment of the present invention provides a method for recording redo logs in a database, and the processing flow can be as follows figure 1 As shown, the execution subject of this method can be CPU (Central Processing Unit, central processing unit), and the following will figure 1 The process is described in detail, the specific content is as follows:
[0105] In step 101, a log record request is received, and the log record request carries a transaction identifier and log information.
[0106] A transaction can include one or more operations. When a transaction operates on a database, it needs to record a corresponding log, and can send a log record request to the CPU. Among them, the transaction identifier is used to identify the transaction corresponding to the log, and the log information is the content of the operation corresponding to the log, for example, modify value1 (value 1) corresponding to key1 (primary key 1) to value1'.
[0107] Step 102 , judgi...
Embodiment 3
[0134] The embodiment of the present invention provides a kind of method for database record redo log, and the executive subject of this method can be CPU, and the concrete content of this method can be as follows:
[0135] When a transaction start notification carrying a transaction identifier is received, a part of the cache space is selected in the redo cache, and a transaction cache block corresponding to the transaction identifier is established. Wherein, the global sequence information records the time sequence of the log information in all log information. After the transaction cache block is established, the newly established transaction cache block can be set as the currently used transaction cache block. Specifically, for the establishment process of the transaction cache block, reference may be made to the specific content of step 103 in the second embodiment, which will not be repeated here.
[0136] When a log record request carrying a transaction identifier and ...
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