Method and device for optimizing distributed cache

A distributed caching and caching technology, applied in the computer field, can solve problems such as cache degradation strategy performance degradation, and achieve the effects of overcoming performance degradation, ensuring retrieval speed, and improving storage efficiency

Active Publication Date: 2020-05-29
CCB FINTECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] In view of this, the embodiments of the present invention provide a method and device for optimizing distributed cache to solve the technical problem of performance degradation caused by cache downgrade strategy under large data volume and long-term requirements

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 and device for optimizing distributed cache
  • Method and device for optimizing distributed cache
  • Method and device for optimizing distributed cache

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0059] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0060] figure 1 is a schematic diagram of the main flow of the method for optimizing distributed caching according to an embodiment of the present invention. As an embodiment of the present invention, such as figure 1 As shown, the method for optimizing distributed caching may include:

[0061] Step 101, determine whether the first level cache has reached the maximum da...

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 and device for optimizing a distributed cache, and relates to the technical field of computers. One specific embodiment of the method comprises the following steps: when a first-level cache reaches the maximum data volume or the current time reaches the cleaning time of the first-level cache, storing part of cache data in the first-level cache into a second-level cache; and modifying the value of the partial cache data in the first-level cache into a key value of the partial cache data in the second-level cache. According to the embodiment, the technical problem of performance reduction caused by a cache degradation strategy under the requirements of large data volume and long time efficiency can be solved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method and device for optimizing distributed cache. Background technique [0002] The purpose of caching is mainly in the following two aspects: [0003] 1) Improve performance: a) In most cases, the select statement in SQL is where the biggest performance problem occurs. On the one hand, the select statement has many rich semantics such as join, group, order, like, etc., and these semantics are very performance-consuming; on the other hand, most applications read more and write less, so slow queries are exacerbated b) Remote calls in distributed systems will also reduce system performance, because there is network overhead, which will lead to prolonged overall response time. In order to save such performance overhead, it is very necessary to use cache when the business permits (not requiring too real-time data). [0004] 2) Relieve database pressure: When user req...

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/2455G06F16/2453
CPCG06F16/24552G06F16/2453Y02D10/00
Inventor 黄显龙
Owner CCB FINTECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products