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

Lightweight cross-host cache refreshing method and device

A cross-host, lightweight technology, applied in the computer field, to achieve the effect of ensuring the amount of interactive data, reducing pressure, and ensuring pressure

Active Publication Date: 2019-10-22
INSPUR COMMON SOFTWARE
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical task of the present invention is to provide a lightweight cross-host cache refresh method and device to solve how to refresh the database cache of the application program on a regular basis, and effectively improve the cache refresh rate under the condition that the database pressure does not increase significantly. timeliness issue

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
  • Lightweight cross-host cache refreshing method and device
  • Lightweight cross-host cache refreshing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0059] The lightweight cross-host cache refresh method of the present invention uses an asynchronous refresh mechanism for the database cache information of each application program under the condition of distributed deployment of the same database application program under the condition of ensuring low database interaction; specific steps as follows:

[0060] S1. Application database registration: The application registers the cache refresh record of the program with the database, and each cache information registers the cache information record with the cache management logic; the specific steps are as follows:

[0061] When the application starts, it calls RegisterDBCacheInfo(string machineID, stringprogramID,...) to update the cache record of the current application on the current host to the database table.

[0062] S2, obtain database configuration data from the cache; as attached figure 2 As shown, the specific steps are as follows:

[0063] S201. Call GetFreshFlag(string clas...

Embodiment 2

[0080] The lightweight cross-host cache refreshing device of the present invention includes,

[0081] The database table is used to store host information; the host information stored in the database table includes host identification information, application identification information, refresh identification information, and last refresh time information.

[0082] The database table structure is as follows:

[0083] Serial number Column name Description 1 MachineID Host ID (uniquely identify a host) 2 ProgramID Application ID (uniquely identify an application on a host) 3 FreshFlag Refresh logo (identify whether the application needs to refresh the cache) 4 LastFreshTime Last refresh time (the last time to check whether it needs to be refreshed) 5 … …

[0084] The application module is used to store cache registration information and periodically obtain the information about whether to refresh the cache; the application module includes,

[0085] The application cache registratio...

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 lightweight cross-host cache refreshing method and a lightweight cross-host cache refreshing device, and belongs to the field of computers. The technical problem to be solvedis how to refresh a database cache of an application program regularly as required. Under the condition that the pressure of a database is not obviously increased, the timeliness of cache refreshingis effectively improved. The technical scheme is as follows: (1) The method is an asynchronous refreshing mechanism of database cache information of each application program under the condition of ensuring lower database interaction quantity under the distributed deployment condition of the same database application program; the method comprises the following steps: S1, registering an applicationdatabase; S2, acquiring database configuration data from a cache; and S3, notifying all programs to update the cache. (2) The device comprises a database table, an application program module and a cache refreshing module, wherein the database table is used for storing host information; the application program class module is used for storing cache registration information and regularly acquiring information about whether cache refreshing is needed or not; the cache refreshing module is used for providing all program cache refreshing methods.

Description

Technical field [0001] The invention relates to the field of computers, in particular to a lightweight cross-host cache refresh method and device. Background technique [0002] With the rapid development of ERP software today, customers are increasingly demanding the reliability and performance of ERP software. The fastest and most effective way to improve program performance is to reduce the interaction between the application and the database. The most common way to reduce the number of interactions between the program and the database is to use the memory cache for frequently used data to improve the data processing capability of the application; At the same time, in order to ensure the reliability of the ERP system, the usual solution is to use distributed deployment, which not only improves the load capacity of the application but also improves the reliability. Under the condition of distributed deployment of applications, the problem of refreshing database cache informatio...

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
IPC IPC(8): G06F16/23G06F16/2455
CPCG06F16/235G06F16/24552Y02D10/00
Inventor 栗建豪
Owner INSPUR COMMON SOFTWARE
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