Cache asynchronous refresh method, system and computer-readable storage medium

A cache, asynchronous technology, applied in computing, instrumentation, electrical digital data processing, etc., can solve the problems of wasting host memory, unable to guarantee data, reducing cache availability, etc., to improve performance, reduce redundancy, improve The effect of usability

Active Publication Date: 2022-08-05
WHALE CLOUD TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

On the one hand, this solution cannot guarantee that the data to be refreshed is the data that already exists in the cache, that is, there are a large number of invalid operations in data refresh; on the other hand, the application cannot quickly check whether the cache data used is being refreshed, that is, the application accesses the cache validity cannot be guaranteed
[0006] In the prior art, the cache data change refresh method usually refreshes the data in the dimension of the table, but once some data in a table changes frequently (the rest of the data remains unchanged), the table cannot actually use the cache, which seriously reduces the speed. The availability of the cache; in addition, this method loads the full table data when the cache is started, avoiding a large number of invalid operations in data refresh, but also introduces a large amount of redundant data, which is not accessed or never accessed by the application Will access, actually waste a lot of host memory

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
  • Cache asynchronous refresh method, system and computer-readable storage medium
  • Cache asynchronous refresh method, system and computer-readable storage medium
  • Cache asynchronous refresh method, system and computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to facilitate the understanding of those skilled in the art, the present invention will be further described below with reference to the embodiments and the accompanying drawings, and the contents mentioned in the embodiments are not intended to limit the present invention.

[0027] Existing methods for asynchronous cache refresh usually implement application access to cache data in the dimension of a table. This scheme reduces the availability of the cache system, and also causes data redundancy and memory waste.

[0028] Based on the problems found above, an embodiment of the present invention discloses an asynchronous cache refresh system and method based on SQL features, such as figure 1 , the system includes: a cache engine 20 , a database cache 30 and a database 40 .

[0029] The cache engine 20 may include an SQL feature parsing module, a feature matching module and a cache refresh module. The cache engine may receive SQL query requests from the applic...

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

A cache asynchronous refresh method, comprising: detecting a refresh log table of a database cache; when database data is changed, according to the table name and index information, matching the record to be processed with the SQL feature table of the database cache, Wherein the SQL feature table includes at least the SQL feature information used for maintaining business applications; when the record matches the SQL feature, the SQL feature state corresponding to the record is set as being refreshed; according to the table name and primary key information in the refresh log table Obtain the corresponding data from the database, and flush the data into the database cache; when the data refresh is completed, set the SQL feature state corresponding to the record to take effect, and then delete the corresponding record in the refresh log table; If the record does not match the SQL feature, delete the corresponding record in the refresh log table. This method has high availability, high performance, and avoids the existence of a large number of redundant data in the cache that the application does not access.

Description

technical field [0001] The invention belongs to the technical field of database cache, and in particular relates to a cache asynchronous refresh method, device, electronic device and computer-readable storage medium. Background technique [0002] Entering the era of big data, with the exponential increase in the amount of user data, the scale of business applications also increases, and the traditional high-performance single-host system gradually evolves into a distributed system. With the change of the business application deployment architecture, the database resources that the application depends on must also be deployed separately from the application host. When a large number of applications access the database remotely and frequently, from the perspective of the application side, the high network latency occupied by the remote access will seriously reduce the processing efficiency of the system; from the perspective of the database, with the high concurrent operation ...

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 Patents(China)
IPC IPC(8): G06F16/2455G06F16/242
CPCG06F16/24552G06F16/2433
Inventor 汲洋弘康林李杰郭聪明
Owner WHALE CLOUD 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