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

Method for efficiently managing caches based on data versions

A caching and data technology, applied in electrical digital data processing, special data processing applications, instruments, etc., can solve problems such as pressure, achieve the effect of improving synchronization and consistency, and avoiding data inconsistency

Inactive Publication Date: 2017-06-20
INSPUR QILU SOFTWARE IND
View PDF0 Cites 7 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 address the above deficiencies, provide a method for efficiently managing caches based on data versions, solve the problem of database pressure caused by a large amount of interaction between the system and data in the existing software development process, and meet the requirements of business data consistency Requirements, while reducing the difficulty of code development, improving the performance and concurrency of existing or new systems

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0091] The present invention will be further described below in conjunction with specific examples.

[0092] An efficient cache management method based on data version, which makes up for the lack of MyBatis secondary cache control, improves the synchronization and consistency of secondary cache Cache and database data, and handles the relationship between each cache; accurately manages MyBatis Second-level cache, to achieve fine-grained control of MyBatis second-level cache; when the update operation on the database table is performed, you can specify to clear the cache generated by the query statement represented by a specific StatementId; the maintenance of the cache is independent , the caches will not affect each other. The statements in the specified Mapper will only affect the Cache corresponding to the Mapper. When some update operations are performed, the cache generated by a specific query statement can be refreshed or cleared to avoid data inconsistency .

[0093] ...

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 method for efficiently managing caches based on data versions, and belongs to the technical field of software development. The method for efficiently managing the caches based on the data versions makes up insufficiency of MyBatis second-level cache control, synchronization and consistency of second-level caches and database data are improved, and correlations between each cache are processed; the second-level cashes of MyBatis are accurately managed, and fine granularity of the MyBatis second-level caches is controlled; when updating operation is executed on a database table, caches generated by a query statement which is represented by a specific StatementId can be specifically cleared. According to the method for efficiently managing the caches based on the data versions, the problem is solved that database pressure is caused by a large amount of interaction between a system and a database in an existing software development process, the requirement of consistency of business data is met, at the same time, the difficulty of code development is reduced, and the performance and concurrent capability of existing or newly-established systems are improved.

Description

technical field [0001] The invention relates to the technical field of software development, in particular to a method for efficiently managing caches based on data versions. Background technique [0002] In software development, quite a lot of content needs to interact with the database. The general processing is to exchange data directly with the database. However, the processing tasks of the database are quite heavy, and often become the key link of slow system operation or downtime. Even if caching technology is used, the cache will be directly operated by the developer, which requires high development ability and code quality of the developer. [0003] MyBatis is a technical framework for data persistence, which mainly supports the interaction between business applications and databases. It has been widely used in J2EE-based development technology platforms. MyBatis provides a second-level cache mechanism that can simply cache corresponding data, but the synchronizatio...

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): G06F17/30
CPCG06F16/252G06F16/219G06F16/24552
Inventor 李光学陈尧
Owner INSPUR QILU SOFTWARE IND
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