Method and system for merging logs of memory database
A database and log technology, applied in electrical digital data processing, special data processing applications, instruments, etc., can solve the problems of lack of generality of different transaction protocols, increased system burden, complex transaction processing, etc., to reduce deployment costs, reduce The number of logs and the effect of improving system performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0039] Such as figure 1 As shown, the log system provided by the present invention includes a log buffer area in the memory, a log management file, and a log file. The log system has its own memory log buffer area, manages disk log files by itself, and has its own disk log write thread. The log buffer caches the log, which is composed of a buffer header and multiple cache blocks. A hash index is established on the cache block to provide log merging functions. The buffer adopts the strategy of multiple buffer blocks. When a buffer block is full and continues to add logs to the log system, another free block is used as the current log buffer block. When the checkpoint log is received, all the logs in the buffer area are written to the disk log file. The log management file manages the log file, which records the corresponding management information of the log file, and consists of a file header and an information area: the file header records related management information, is r...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 