Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for updating database hotspot data cache in real time

A hot data, real-time update technology, applied in database update, database distribution/replication, electronic digital data processing, etc., can solve problems such as database and cache inconsistency, failure to reach the life cycle, game delay offline, etc., to solve short-term inconsistencies Problems, reducing the amount of cache, and ensuring effective use

Pending Publication Date: 2022-03-04
4399 NETWORK
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The above database and cache read and write methods have the following problems: For a certain data A, if it is in the cache, and the time in the cache has not reached its life cycle; at this time, the database performs an update operation on the data A, for example , delete data A
Therefore, there will be a problem of inconsistency between the database and the cache. In some scenarios, the inconsistency between the database and the cache is unacceptable. Causes the game to be delayed and offline, and an error occurs

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
  • Method for updating database hotspot data cache in real time

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the technical problems, technical solutions and beneficial effects solved by the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0024] The present invention provides a method for updating database hotspot data cache in real time, refer to figure 1 , including the following steps:

[0025] Step 1, the database is configured with an independent monitoring thread to monitor the status of the database in real time, and when an update operation is detected in the database, the update message is published to the message queue;

[0026] in:

[0027] Update operations include: write operations, modify operations, and delete operations;

[0028] The update message includes: if it is a write operation, ...

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 provides a method for updating hotspot data cache of a database in real time, which comprises the following steps of: configuring an independent monitoring thread for the database, monitoring the state of the database in real time, and issuing an update message to a message queue when the update operation of the database is monitored; the message processing program processes the update messages in the message queue one by one; and updating the hotspot cache by adopting the update message Infor. According to the method for updating the database hotspot data cache in real time, a monitoring thread for database change is added, when the database data is changed, if the database data is hotspot data, the hotspot cache can be updated in time, the consistency of the hotspot data in the database and the hotspot cache is guaranteed, and the reliability of the database is improved. The problem that cache information and database information are inconsistent temporarily is solved. In addition, non-hotspot data of the hotspot cache are cleared away in time, the cache amount is reduced, and therefore the hotspot cache space is released in time, and effective use of the hotspot cache is guaranteed.

Description

technical field [0001] The invention belongs to the technical field of computer information processing, and in particular relates to a method for real-time updating hotspot data cache of a database. Background technique [0002] The reading and writing methods of traditional databases and caches are as follows: during read operations: when the upper-layer application program is running, when data needs to be read, first determine whether there is target data to be read in the cache, and if so, directly read from the cache Target data; if not, put the target data in the database into the cache, and then read the target data from the cache. When writing: When data needs to be updated, only the relevant data in the database is updated; while the data in the cache is removed according to its life cycle. [0003] The above database and cache read and write methods have the following problems: For a certain data A, if it is in the cache, and the time in the cache has not reached ...

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/23G06F16/2455G06F16/2457G06F16/2458G06F16/27
CPCG06F16/23G06F16/24552G06F16/2471G06F16/27G06F16/24578Y02D10/00
Inventor 李兴平赖晓航何敏堂张城瑞
Owner 4399 NETWORK