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

A Data Cache Layer Replacement Algorithm Based on User Activity

A technology of user activity and data caching, which is applied in the field of data cache layer replacement algorithm based on user activity, can solve problems such as improvement without business nature, no cache layer replacement, etc., and achieve less response time to user requests, Increase user satisfaction and enhance experience

Active Publication Date: 2019-01-25
UNIV OF ELECTRONICS SCI & TECH OF CHINA
View PDF4 Cites 0 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
  • A Data Cache Layer Replacement Algorithm Based on User Activity
  • A Data Cache Layer Replacement Algorithm Based on User Activity
  • A Data Cache Layer Replacement Algorithm Based on User Activity

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 user activity, comprising the following steps: S1, initializing cache active users; S2, synchronizing data between the data cache layer and a database; S3, recalculating user activity degree, set the third-level warning value; S4, set the first-level warning value and the second-level warning value; Changes in user activity; S6. Active user cache replacement; S7. Repeat steps S2-S6 according to the period set by the system administrator until the system stops running. The present invention saves the data of users with high activity in the data cache layer by calculating the activity of users, and when the user with high activity accesses, the response can be directly obtained from the cache layer without accessing the server, which is much less It shortens the time to respond to user requests and improves the user experience.

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 Patents(China)
IPC IPC(8): G06F12/121
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