Memory data management method and device, computer equipment and storage medium

A technology of memory data and management methods, applied in the fields of memory data management methods, devices, computer equipment and storage media, capable of solving problems such as disappearance, loss, and irrecoverability, to ensure persistence, enhance response speed, and avoid data loss Effect

Pending Publication Date: 2021-06-11
彩讯科技股份有限公司
View PDF8 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, due to the volatility of memory, when the system encounters abnormal failures such as restarting, the data in the memory will disappear and cannot be recovered, resulting in losses

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
  • Memory data management method and device, computer equipment and storage medium
  • Memory data management method and device, computer equipment and storage medium
  • Memory data management method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] figure 1 It is a flow chart of the memory data management method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of managing memory data in a real-time business system with a large number of users and high concurrency scenarios. The method can be executed by the device for managing memory data provided by the embodiment of the present invention. The device can be implemented by hardware and / or It can be implemented by means of software, which can generally be integrated into computer equipment. Such as figure 1 As shown, it specifically includes the following steps:

[0026] S11. Build an in-memory database. The in-memory database includes a hash table. Each node of the hash table is a doubly linked list, and each node of the doubly linked list is used to point to correspondingly stored memory data.

[0027] Among them, the memory database is a database that puts data in the memory and directly operates it. It can sto...

Embodiment 2

[0060] Figure 5It is a schematic structural diagram of the memory data management device provided by Embodiment 2 of the present invention. The device can be implemented by hardware and / or software, and can generally be integrated into computer equipment. Such as Figure 5 As shown, the device includes:

[0061] The database construction module 51 is used to build an in-memory database, the in-memory database includes a hash table, each node of the hash table is a doubly linked list, and each node of the doubly linked list is used to point to correspondingly stored memory data;

[0062] The file synchronization module 52 is used for associating storage of the memory data in the hard disk file, so as to make the memory data persistent.

[0063] The technical solution provided by the embodiments of the present invention firstly constructs an in-memory database, which is mainly realized through the combined use of a hash table and a doubly-linked list, wherein each node of the...

Embodiment 3

[0094] Figure 6 The schematic structural diagram of the computer device provided for the third embodiment of the present invention shows a block diagram of an exemplary computer device suitable for implementing the embodiment of the present invention. Figure 6 The computer equipment shown is only an example, and should not bring any limitation to the functions and scope of use of the embodiments of the present invention. Such as Figure 6 As shown, the computer equipment includes a processor 61, a memory 62, an input device 63 and an output device 64; the number of processors 61 in the computer equipment can be one or more, Figure 6 Taking a processor 61 as an example, the processor 61, memory 62, input device 63 and output device 64 in the computer equipment can be connected by bus or other methods, Figure 6 Take connection via bus as an example.

[0095] The memory 62, as a computer-readable storage medium, can be used to store software programs, computer-executable p...

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 embodiment of the invention discloses a memory data management method and device, computer equipment and a storage medium. The method comprises the steps that a memory database is constructed, the memory database comprises a hash table, each node of the hash table is a double linked list, and each node of the double linked list is used for pointing to correspondingly stored memory data; and associated storage is performed on the memory data in the hard disk file so as to enable the memory data to be persistent. According to the technical scheme provided by the embodiment of the invention, through combined use of the hash table and the double linked list, millisecond-level high-speed and large-concurrency data requests are realized, the response speed of user requests in a real-time service system is enhanced, the user experience is improved, and meanwhile; through content synchronization with corresponding hard disk files, on the basis of meeting high-speed access to the memory, persistence of the data can be ensured, so that the data can be recovered in time when encountering an abnormal condition, and data loss is avoided.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of data storage, and in particular, to a management method, device, computer equipment, and storage medium for memory data. Background technique [0002] At present, with the increasing demand for information and data processing and the increasing variety of businesses in different fields, memory-based data management is becoming more and more important. By using the computer memory as a data carrier, since no hard disk is used, the I / O time overhead for the hard disk is saved, so that the efficiency of data storage and query can be significantly improved. However, due to the volatility of the memory, when the system encounters abnormal failures such as restarting, the data in the memory will disappear and cannot be recovered, resulting in losses. Contents of the invention [0003] Embodiments of the present invention provide a memory data management method, device, computer equi...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/06G06F16/13G06F16/178
CPCG06F3/0619G06F3/0643G06F3/065G06F16/13G06F16/178
Inventor 杨良志白琳汪志新周光辉吴友生
Owner 彩讯科技股份有限公司
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