Memory database parallel logging method for nonvolatile memory
A non-volatile memory and database technology, applied in the field of memory database parallel log, can solve problems such as limiting the recovery efficiency of memory database, achieve the effect of ensuring recoverability and speeding up the transaction submission process
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0024] Embodiment 1: The parallel log method of the present invention relies on the characteristics of differential logs. The specific calculation of the differential log and its characteristics of commutative and associative laws are described below through an example. Methods as below:
[0025] The original value of the data X is 5, the binary value is 0101. After the first modification, it becomes 7, and the binary value is 0111; after the second modification, it becomes 10, and the binary value is 1010; the previous image of the first change is 0101, and the after image is 0111, then the XOR value of the two is 0010; the second changed front image is 0111, and the after image is 1010, then the XOR value of the two is 1101; the two log records are log Record 1=, log record 2=;
[0026] The truth table of the XOR operation is, 0 XOR 0=0, 1 XOR 1=0, 0 XOR 1=1, 1 XOR 0=1;
[0027] The difference log conforms to the associative law, and the two log records are merged, that is...
Embodiment 2
[0029] Embodiment 2: specific implementation
[0030] (1) For data update, calculate the XOR value of the front image and the after image.
[0031] (2) Combining the location information of the modified data to form a log record, in the form of .
[0032] (3) Logs are grouped by page ID and recorded in non-volatile memory.
[0033] (4) When the log information of a certain transaction is written into the non-volatile memory, the transaction can be committed.
[0034] (5) When the log non-volatile memory buffer for a certain page is full, the entire log information buffer is written to the disk. The log buffer of each page can be written to different disk devices through multi-channel I / O.
[0035] (6) While the log is written to the disk from the non-volatile memory buffer, if there is a transaction to access and modify the page, then the log information is written into another non-volatile memory buffer. We prepare two non-volatile memory buffers for each page, one for wr...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com
