Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Cache asynchronous refreshing method and system and computer readable storage medium

A high-speed cache and asynchronous technology, applied in computing, instrumentation, electrical digital data processing, etc., can solve the problems of wasting host memory, inability to guarantee data, and reduce cache availability, so as to improve availability, reduce redundancy, and improve performance Effect

Active Publication Date: 2020-07-14
WHALE CLOUD TECH CO LTD
View PDF10 Cites 5 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 refreshing method and system and computer readable storage medium
  • Cache asynchronous refreshing method and system and computer readable storage medium
  • Cache asynchronous refreshing method and 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 in conjunction with the embodiments and accompanying drawings, and the contents mentioned in the embodiments are not intended to limit the present invention.

[0027] Existing methods for asynchronously refreshing the cache usually implement the application's access to the cache data in the dimension of a table. This solution reduces the availability of the cache system, and also causes data redundancy and memory waste.

[0028] Based on the problems found above, the embodiment of the present invention discloses a cache asynchronous 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] Wherein, the cache engine 20 may include a SQL feature parsing module, a feature matching module, and a cache refreshing module. The cache engine can receive SQL...

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 refreshing method comprises the following steps: detecting a refreshing log table of a database cache; when the database data is changed, according to the table name and the indexinformation, matching a record to be processed with an SQL feature table of the database cache, wherein the SQL feature table at least comprises SQL feature information used for maintaining a serviceapplication; when the record is matched with the SQL feature, setting the SQL feature state corresponding to the record to be in refresh; obtaining corresponding data from a database according to thetable name and primary key information in the refreshing log table, and brushing the data into the database cache; after data refreshing is finished, setting the SQL feature state corresponding to the record to be valid, and then deleting the corresponding record in the refreshing log table; and when the record is not matched with the SQL feature, deleting the corresponding record in the refreshing log table. The method has the high availability and high performance, and avoids a large amount of redundant data which is not accessed by the application in the cache.

Description

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

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/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
Eureka Blog
Learn More
PatSnap group products