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

Slow query log processing method, device and electronic device

A processing method and slow query technology, applied in the field of data processing, can solve problems such as excessive execution time, blocking other operations, data coverage, etc., and achieve the effect of improving operating efficiency

Active Publication Date: 2018-02-13
BEIJING XIAODU INFORMATION TECH CO LTD
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But Redis is a single-process storage system. If some data requests take too long to execute, it will affect the process of the entire system.
The slowlog (slow query) data in the Redis system records requests or commands whose execution time exceeds the specified time and some related information. Therefore, related technologies read the slow log data to understand which requests or commands take too long to execute, but only It is not enough to know who the request or order is that is taking longer than the specified amount of time
[0003] In addition, due to the weak function of the slowlog data itself, it is a fixed-length circular queue. When there are too many slow operations, it is very easy to overwrite the data. Increasing the slow query cache queue will increase the consumption of Redis memory resources, and some too slow operations may cause Block other operations, if the slow operation is not handled in time, it will affect or even block the process of the system

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
  • Slow query log processing method, device and electronic device
  • Slow query log processing method, device and electronic device
  • Slow query log processing method, device and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0067] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily realize them. Also, for clarity, parts not related to describing the exemplary embodiments are omitted in the drawings.

[0068] In the present disclosure, it should be understood that terms such as "comprising" or "having" are intended to indicate the presence of features, numbers, steps, acts, components, parts or combinations thereof disclosed in the specification, and are not intended to exclude one or a plurality of other features, numbers, steps, acts, parts, parts or combinations thereof exist or are added.

[0069] In addition, it should be noted that, in the case of no conflict, the embodiments in the present disclosure and the features in the embodiments can be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings...

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

An embodiment of the invention discloses a slow query log processing method, a device and an electronic device. The method includes steps of acquiring a slow query log; confirming a record object corresponding to the slow query log; executing preset treatment on the recording object corresponding to the slow query log. According to the technical scheme provided by the embodiment of the invention,the request or command with long executing time and too slow response speed is automatically processed regularly, thus the normal storage of the slow log can be guaranteed, the length of the slow query buffer queue is controlled within a reasonable scale; besides, the request or command with too long executing time and too slow response speed can be timely evacuated, thereby avoiding blocking other operations and influencing and even blocking the system process, and effectively improving the running efficiency of the system.

Description

technical field [0001] The present disclosure relates to the technical field of data processing, in particular to a slow query log processing method, device and electronic equipment. Background technique [0002] With the development of Internet technology and the widespread use of digital devices such as smart phones, a large amount of data is stored in a specific database and requested and called. For example, a large amount of key-value data is stored in the Redis database for requests and calls. However, Redis is a single-process storage system. If some data requests take too long to execute, it will affect the entire system process. The slowlog (slow query) data in the Redis system records requests or commands whose execution time exceeds the specified time and some related information. Therefore, related technologies read the slow log data to understand which requests or commands take too long to execute, but only It's not enough to know who the request or order is t...

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): G06F17/30
CPCG06F16/217G06F16/2453
Inventor 翟晓阳罗保隆徐俊劲赵晓燕
Owner BEIJING XIAODU INFORMATION TECH CO LTD
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