Cache updating method suitable for divergent data

An update method and data technology, applied in the direction of database update, network data retrieval, other database retrieval, etc., can solve the problems of long cycle, the drop of cache update method hit rate, the inability to quickly adapt to the data access mode, etc., to avoid pollution.

Inactive Publication Date: 2019-08-13
SOUTH CHINA UNIV OF TECH
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In practice, LFU is very common. It is similar to LRU and is also used to process hot data, but usually has a higher hit rate.
However, LFU also has certain problems. It cannot make adjustments in time according to the data access situation. Compared with other algorithms, it takes longer to adapt to the new data access mode, because the "historical data" in the cache needs a longer period of time. cycle to change
[0007] However, when the data access is relatively divergent and there is no hot data effect, the hit rate of the traditional cache update method will drop significantly
At the same time, when the data access mode changes, many traditional cache update methods cannot quickly adapt to the new data access mode

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 updating method suitable for divergent data
  • Cache updating method suitable for divergent data
  • Cache updating method suitable for divergent data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0054] The specific parameters of this embodiment are as follows: the main cache queue capacity is set to 1024, the auxiliary cache queue capacity is set to 100, and the preset expansion ratio is set to two-thirds;

[0055] Initially, the main cache queue is full and the secondary cache queue is full.

[0056] Such as figure 1 Schematic diagram of a cache model for a cache update method suitable for divergent data. The model is divided into two cache queues. There are cache items with various flag states in the main cache queue. When the cache is full, it is mainly processed according to the flag bits; the auxiliary cache queue is similar to a first-in-first-out queue structure, but When the cache item in it is updated again, the id of the cache item will be updated. A cache update method suitable for divergent data, including a main cache queue update cache and an auxiliary cache queue update cache.

[0057] Such as figure 2 As shown, the specific process of updating the...

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 cache updating method suitable for divergent data. According to the method, double cache queues are designed for the problems that the cache hit rate of divergent data is lowand the divergent data is prone to being affected by historical data, one cache queue A conducts cache updating mainly according to the data access condition, the other cache queue B conducts cache updating according to the data updating condition, and the capacity of the cache queue A is larger than that of the cache queue B. The cache queue A maintains an access mark, and when the space is full, capacity expansion is carried out or some marked cache items are deleted. And the cache queue B maintains the updating time of the cache items, and deletes the cache item which is updated first whenthe space is full. According to the method, the problem that a traditional cache updating algorithm is low in cache hit rate under the condition of data divergence is solved, meanwhile, the conditionof historical data pollution is avoided, the method is sensitive to data access changes and can rapidly adapt to the data access changes, and the high cache hit rate is achieved through a small memory space.

Description

technical field [0001] The invention relates to a cache update method, in particular to a cache update method in the case of divergent data. Background technique [0002] With the development of the Internet, the number of Internet users has increased dramatically. The concurrency of many systems has also increased, and the operation of the database has become the concurrency bottleneck of the system. The research found that most of the data requests are query requests, so the cache can be used to avoid occupying database resources, and the database data is requested only when the cache misses. In actual production, not only the server will use cache, but many clients also have corresponding cache mechanisms. The application effect of caching on the server side is better, which greatly improves the concurrency of the system. However, the cache capacity cannot be expanded without limit. When a large amount of data is added to the cache, a trade-off needs to be made accordi...

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/957G06F16/23
CPCG06F16/23G06F16/9574
Inventor 李拥军郑旭谢嵘
Owner SOUTH CHINA UNIV OF 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