Double-cache data storage method and device and storage medium

A data storage device and data storage technology, applied in the field of information processing, can solve the problems that the reading speed of the hard disk is not as good as that of the cache, cannot cover popular data of different functional modules, and the cache access pressure is high, so as to reduce disk overhead and improve storage efficiency , the effect of reducing costs

Inactive Publication Date: 2019-03-08
XIAMEN KUAISHANGTONG INFORMATION TECH CO LTD
View PDF9 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, most database operations involve disk operations, especially when a large number of data query requests are received in a short period of time, even if the data is searched in the cache with a faster reading speed, sometimes the cache access pressure will be too high. Once the cache with faster reading speed crashes, a large number of data query requests will directly read the hard disk of the database. Since the reading speed of the hard disk is not as good as the cache, it is foreseeable that the hard disk will also crash
[0004] In order to operate the disk as little as possible, the mainstream design will add a cache to the database, first go to the cache to find data, and then go to the database to query if there is no data in the cache. However, the traditional first-level cache can only cover the latest and hottest data, and cannot cover different functional modules. popular data

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
  • Double-cache data storage method and device and storage medium
  • Double-cache data storage method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention clearer and clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0031] Such as figure 1 Shown, a kind of double cache data storage method of the present invention, it comprises the following steps:

[0032] a. The cache is divided into a first-level cache and a second-level cache; wherein, the first-level cache directly stores hot data in memory, and the second-level cache stores hot data according to different data types;

[0033] b. Receive a query request, and first go to the first-level cache for query according to the query request; if there is query data corresponding to the query request in the first-level c...

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 discloses a dual-buffer data storage method and device and a storage medium. The buffer is divided into a first-level buffer and a second-level buffer. The first level cache stores the hot data directly in memory, and the second level cache stores hot data according to different data types. When receiving a query request, querying in a first-level cache first according to the query request; if the query data corresponding to the query request exists in the first-level cache, the query data is returned to the requester, and the query data is cached in the first-level cache as thehot data of the first-level cache. If the first level cache can not obtain the query data, the second level cache is used for querying; if the query data corresponding to the query request exists in the secondary cache, the query data is returned to the requester, and the query data is cached to the hot data under the corresponding data type in the secondary cache as the secondary cache, thereby reducing disk overhead and improving storage efficiency.

Description

technical field [0001] The invention relates to the technical field of information processing, in particular to a double-buffer data storage method and a device and a storage medium for applying the method. Background technique [0002] With the development of network communication technology and the accelerated pace of life, there are more and more ways for people to obtain information, and the speed of obtaining information is also faster and faster. For example, many events are widely spread on the Internet even just after they happen, and The service providers that provide these hot news often need to deal with a large number of users querying extremely large amounts of data in a short period of time. The server usually uses the database to store the obtained data, and writes the stored data into the hard disk. However, if the user wants to query the data, if the data is directly read from the hard disk, it will cause excessive pressure on hard disk access. The usual ap...

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): G06F16/2455G06F16/2458
Inventor 俞文龙肖龙源刘翔鹏李稀敏蔡振华刘晓葳谭玉坤
Owner XIAMEN KUAISHANGTONG INFORMATION TECH CO LTD
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