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

A database cache control method and system

A cache control and database technology, applied in the computer field, can solve problems such as ineffective cache technology, increased error risk, and low cache hit rate, so as to improve software quality, reduce software error rate, and improve cache hit rate rate effect

Active Publication Date: 2020-01-14
江西知产大数据有限公司
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] However, in relational database queries, query statements usually need to span multiple tables. In such a complex situation, it is difficult to classify these query statements according to namespaces. In the end, most query statements will be classified into the same namespace. Then, as long as one of the update statements is executed, all the caches will be cleared, resulting in a very low cache hit rate, and the cache technology has no obvious effect
In addition, under the existing technology, developers use namespaces to declare the relationship between query statements and update statements, which invisibly increases the difficulty of work and increases the risk of errors

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 database cache control method and system
  • A database cache control method and system
  • A database cache control method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the associated drawings. Typical embodiments of the invention are shown in the drawings. However, the present invention can be embodied in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that the disclosure of the present invention will be thorough and complete.

[0050] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field of the invention. The terms used herein in the description of the present invention are for the purpose of describing specific embodiments only, and are not intended to limit the present invention.

[0051] Terms including ordinal numbers, such as "first" and "second", used in this specification can be used to describe various co...

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 relates to a database cache control method and a database cache control system. The method comprises the following steps: S0, establishing a first mapping table, a second mapping table and a third mapping table in cache; S1, executing S2 for data of every time and executing S3 for data update of every time; S2, inquiring the first mapping table, if the first mapping table has no inquiring result, inquiring the database and updating the first mapping table based on the database inquiring result and inquiring the table names involved to update the second mapping table and the third mapping table; and S3, after updating the database, updating the first mapping table, the second mapping table and the third mapping table based on the table names involved in update. The method provided by the invention can more precisely judge the relationship between an inquiring sentence and an updating sentence. Local cache which is truly associated is only emptied after executing the updating operation every time and cache which is not associated is reserved instead of emptying the cache in a large scale, so that the cache hit ratio can be increased, the access average speed can be raised, the development efficiency can be improved, the error rate of software can be reduced, and the software equality can be enhanced.

Description

technical field [0001] The invention relates to the field of computers, in particular to a database cache control method and system. Background technique [0002] Most of the current web pages are generated using dynamic data and static styles, and dynamic data is often stored in relational databases, such as Oracle, Mysql, Sqlserver and so on. In order to improve the speed of webpage generation, database caching technology is often used, that is, the data queried from the database is not destroyed immediately after the webpage is generated this time, but there is a place that can be read quickly (such as memory), and the next time you wait for this When the webpage is requested again, the data can be quickly retrieved from the cache without querying the database again, thereby increasing the speed of webpage generation, increasing the throughput of the website, reducing user waiting time, and improving user experience. [0003] To query data from the database, query statem...

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): G06F16/2455
CPCG06F16/24552G06F16/24564
Inventor 李军黄海
Owner 江西知产大数据有限公司