Method, device and equipment for keeping database hotspot data and medium

A hot data and database technology, applied in the database field, can solve problems such as rising, crashing, performance difference, etc., and achieve the effect of improving access efficiency, reducing response delay, and avoiding data loss

Pending Publication Date: 2021-12-10
HANGZHOU WOQU NETWORK TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Since the performance difference between the memory and the hard disk is more than 1000 times, after the database is restarted, the user's access to the database will increase exponentially, and because the database has just started, after the application is retried, it is found that the database can provide services, and the previous database requests are more concurrent. If one is sent, the service capability of the database will drop sharply, and even cause problems such as database denial of service and crash.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, device and equipment for keeping database hotspot data and medium
  • Method, device and equipment for keeping database hotspot data and medium
  • Method, device and equipment for keeping database hotspot data and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0031] see figure 1 , which shows a method for maintaining database hotspot data provided by the embodiment of the present application, including the following steps:

[0032] (1) Install persistent memory and its driver on the server where the database is located;

[0033] (2) After the database is started, the storage data d and the corresponding hash value h on the storage device that needs to be accessed at runtime are read out through the interface provided by the storage devi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the technical field of databases, in particular to a method, a device, equipment and a medium for keeping hotspot data of a database, and the method comprises the following steps: (1) installing a persistent memory and a drive thereof on a server where the database is located; (2) reading storage data on a storage device which needs to be accessed during operation, and allocating space in the persistent memory for corresponding storage; (3) forming a data cache pool memory by using all data distributed in the persistent memory, indexing and retaining hot data; (4) establishing a mapping relation between nodes in a memory of the database cache pool and data stored on the storage device, and repeatedly covering the mapping relation with cycle time T; and (5) restarting the database, and verifying the consistency according to the mapping relation r. According to the method, the persistent memory is used for keeping the database hotspot data, the characteristic that the persistent memory can avoid data loss in the memory is fully utilized, and the situation that in the preheating process after the database is restarted, the response delay of a database user is reduced is prevented, and the access efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of databases, in particular to a method, device, equipment and medium for maintaining hotspot data in a database. Background technique [0002] The memory access speed is nanoseconds (10 to the -9 power), and the hard disk access speed is milliseconds (10 to the -3 power), which differs by several orders of magnitude; database access needs to be read from the disk to the memory. After the database is restarted, the data in the memory will be lost, and the data needs to be read from the disk again. There will be a warm-up process. During this process, the response delay of the database user will increase. [0003] Since the performance difference between the memory and the hard disk is more than 1000 times, after the database is restarted, the user's access to the database will increase exponentially, and because the database has just started, after the application is retried, it is found that the database ca...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F16/2455G06F16/22
CPCG06F16/24552G06F16/2255
Inventor 李建辉李春张文件陈栋罗春魏兴华吴炎臧冰凌
Owner HANGZHOU WOQU NETWORK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products