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

Solr-based cache preheating optimization method and device

An optimization method and a technology for optimizing devices, which are applied in the directions of instruments, calculations, and electrical digital data processing, etc., can solve the problems of low cache warm-up efficiency, achieve the effects of optimizing service query speed, improving warm-up efficiency, and improving cache hit rate

Active Publication Date: 2020-12-11
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the problems existing in the prior art, the present invention innovatively proposes a Solr-based cache preheating optimization method and device, which effectively solves the problem of low cache preheating efficiency caused by the prior art, and effectively improves cache preheating Optimized efficiency, easy to improve cache hit rate, optimize service query speed

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
  • Solr-based cache preheating optimization method and device
  • Solr-based cache preheating optimization method and device
  • Solr-based cache preheating optimization method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] Such as figure 1 As shown, the present invention provides a kind of cache preheating optimization method based on Solr, comprising:

[0048]S1. Actively filter the cache content of the previous index query manager, use the first cache mark as the first query condition to optimize the cache content of the actively filtered index query manager, and generate the current first index query manager;

[0049] S2, optimize the cache content in the currently updated first index query manager according to the second query condition, and generate the current second index query manager, wherein the second query condition is aging data defined by a custom method and user query conditions;

[0050] S3, generating a second cache tag based on the first cache tag, using the second cache tag as a third query condition to optimize the cache content in the second index query manager, and generating a current third index query manager;

[0051] S4, merge the current first index query mana...

Embodiment 2

[0071] Such as image 3 As shown, the technical solution of the present invention also provides a Solr-based cache warm-up optimization method, including:

[0072] S1. Actively filter the cache content of the previous index query manager, use the first cache mark as the first query condition to optimize the cache content of the actively filtered index query manager, and generate the current first index query manager;

[0073] S2. Acquiring the first query condition, filtering content different from the first query condition in the second query condition, and using the filtered second query condition as a basis for finally performing cache optimization;

[0074] S3, optimize the cache content in the currently updated first index query manager according to the second query condition, and generate the current second index query manager, wherein the second query condition is aging data defined by a custom method and user query conditions;

[0075] S4, generating a second cache t...

Embodiment 3

[0080] Such as Figure 4 As shown, the technical solution of the present invention also provides a Solr-based cache preheating optimization device, including:

[0081] The first optimization module 11 actively filters the cache content of the previous index query manager, uses the first cache mark as the first query condition to optimize the cache content of the actively filtered index query manager, and generates the current first index query manager device;

[0082] The second optimization module 12 optimizes the cache content in the currently updated first index query manager according to the second query condition, and generates the current second index query manager, wherein the second query condition is through a self-defined method Defined aging data and user query conditions;

[0083] The third optimization module 13 generates a second cache tag on the basis of the first cache tag, optimizes the cache content in the second index query manager by using the second cach...

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 Solr-based cache preheating optimization method, which comprises the following steps of: actively screening cache contents of an index query manager before, and optimizing thecache contents of the index query manager after active screening by taking a first cache mark as a first query condition; optimizing the currently updated cache content in the first index query manager according to a second query condition, and optimizing the cache content in the second index query manager by taking the second cache mark as a third query condition; and merging the current first index query manager, the second index query manager and the third index query manager to generate a fourth index query manager, and writing cache contents of the fourth index query manager into a cacheobject in parallel to finish cache preheating. The invention further provides a Solr-based cache preheating optimization device. The cache preheating optimization efficiency is effectively improved,the cache hit rate is conveniently increased, and the service query speed is optimized.

Description

technical field [0001] The present invention relates to the field of cache optimization, in particular to a Solr-based cache preheating optimization method and device. Background technique [0002] In the newly started caching system, if there is no data in the cache and only rely on user requests to rebuild the cached data, the pressure on the database will be very high, and the performance overhead of the system will be relatively high. The best way is to load the hotspot data at startup, so that when the user requests, the cached data is read directly, without having to read the DB (database) to rebuild the cached data. [0003] For the original cache warm-up loading mechanism of Solr (a distributed full-text database system service), there will be a cache warm-up process in the query scenario, and the preheated cache content is mainly based on directly extracting old index query results Set and query conditions, set the size according to the corresponding autowarmCount ...

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/2453
Inventor 侯满
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD