Checkpoint construction method and device, electronic equipment and storage medium
The invention discloses a check point construction method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a log file of a pre-write log of a memory database; for each log record in the log file, obtaining coordinate information in the log re...
Gespeichert in:
Hauptverfasser: | , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a check point construction method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a log file of a pre-write log of a memory database; for each log record in the log file, obtaining coordinate information in the log record and a log record type recorded in the log record; based on the coordinate information and the log record type, constructing a snapshot corresponding to the log file; and writing the snapshot into a disk to complete check point construction. According to the method, the check point can be constructed only by obtaining the log file of the pre-write log of the memory database, and the influence on the operation efficiency of the database in the check point construction process is avoided.
本发明公开了一种检查点构建方法、装置、电子设备和存储介质。所述方法包括:获取内存数据库的预写式日志的日志文件;针对所述日志文件中的每条日志记录,获取所述日志记录内的坐标信息和所述日志记录内记录的日志记录类型;基于所述坐标信息和所述日志记录类型,构建对应所述日志文件的快照;将所述快照写入磁盘,以完成检查点构建。该方法仅获取内存数据库的预写式日志的日志文件即可完成检查点的构建,避免了在检查点构建过程中对数据库的运行效率造成影响。 |
---|