Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data cache layer replacement algorithm based on user activity degree

A technology for user activity and data caching, applied in the field of data caching layer replacement algorithm based on user activity, which can solve problems such as no improvement in business nature and no caching layer replacement.

Active Publication Date: 2017-01-18
UNIV OF ELECTRONICS SCI & TECH OF CHINA
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the current technology, there is no technology that can replace the cache layer after evaluating the activity, which will make the cache layer just use the ordinary LRU replacement method, without making improvements to the nature of the business

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
  • Data cache layer replacement algorithm based on user activity degree
  • Data cache layer replacement algorithm based on user activity degree
  • Data cache layer replacement algorithm based on user activity degree

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The technical solution of the present invention will be further described below in conjunction with the accompanying drawings.

[0045] Such as figure 1 As shown, a data cache layer replacement algorithm based on user activity includes the following steps:

[0046] S1. Calculate the activity of users, and initialize and cache active users: After the background server initializes the system, it reads the user's login log and platform activity log files, calculates the activity of all users according to the log records, and counts the most active users The user data set that meets the cache capacity is moved into the cache layer as an initialized cache active user; at the same time, a flag value is added to the key-value pair information of the imported user to identify the user's active status, which is initially set as an active user ; User activity calculation specifically includes the following sub-steps:

[0047] S11. Select n factors that affect activity, select m...

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 data cache layer replacement algorithm based on the user activity degree. The method comprises the following steps of S1, initializing cache activity users; S2, synchronizing data between a data cache layer and a database; S3, calculating the user activity degree again and setting a third-level pre-warning value; S4, setting a first-level pre-warning value and a second-level pre-warning value; S5, judging the activity degree change situation of the users in the cache layer according to the first-level pre-warning value, the second-level pre-warning value and the third-level pre-warning value; S6, performing activity user cache replacement; S7, repeating operation of the S2 to S6 according to a period set by a system administrator until a system stops operation. According to the method, the data of the users with high activity degree are stored in the data cache layer by calculating out the user activity degree; response can be directly obtained from the cache layer without accessing a server when the users with the high activity degree access; the time for responding user requests is greatly reduced, and the user experience is improved.

Description

technical field [0001] The invention belongs to the technical field of data cache, and in particular relates to a data cache layer replacement algorithm based on user activity. Background technique [0002] In the database and server architecture, in order to improve the speed of data reading and writing, a data cache layer is often added between the Web server and the database server. Its function is to create a copy of frequently accessed data, so that a query access request It used to be necessary to request a database operation, but now you can first check whether there is a copy of the searched data in the cache layer. If there is a copy already saved, you don’t need to request the database, and read it directly in the cache layer, so that the data access speed can be improved. Huge improvements. However, this method uses the LRU algorithm to cache recently accessed data, and the performance improvement for social networking platforms with specific business requirement...

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): G06F12/12
CPCG06F12/121
Inventor 李贞昊唐雪飞曾智师邹伟斌
Owner UNIV OF ELECTRONICS SCI & TECH OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products