Slow inquiry information retrieval method, device, server and readable storage medium

An information retrieval and server search technology, applied in the field of devices, slow query information retrieval methods, servers and readable storage media, can solve problems such as potential safety hazards, untraceable historical problems, and growth of database collections, so as to avoid potential safety hazards and facilitate Timely investigation and the effect of improving retrieval efficiency

Active Publication Date: 2018-09-11
WUHAN DOUYU NETWORK TECH CO LTD
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The inventors of the present application have found in actual research that the above-mentioned scheme has many disadvantages: first, if the slow query record parameter is always enabled, the corresponding collection of the database will continue to grow, which is very unfavorable for the maintenance of the instance
The second is that if there is a problem in the system, if you turn on the slow query parameter to obtain the slow query statement, it will take a long time to troubleshoot the problem, and historical problems cannot be traced back
The third is that since it is necessary to connect to the Mongodb database and input commands every time, it is necessary to enable the permission to connect to the database for each member who wants to view slow queries. For online data, this method will bring great safety hazard

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 inquiry information retrieval method, device, server and readable storage medium
  • Slow inquiry information retrieval method, device, server and readable storage medium
  • Slow inquiry information retrieval method, device, server and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] It should be noted that like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.

[0047] see figure 1 , is a schematic structural block diagram of a server 100 for implementing a slow query information retrieval method provided by an embodiment of the present invention. In this embodiment, the server 100 includes a slow query information retrieval device 200 , a memory 110 and a processor 120 . In this embodiment of the present invention, the slow query information retrieval apparatus 200 includes at least one device that can be stored in the memory 110 in the form of software or firmware (Firmware) or fixed in an operating system (Operating System, OS) of the server 100 . Software function modules. The processor 120 is configured to execute executable software modules stored in the memory 110 , for example, software function modules ...

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 embodiment of the invention provides a slow query information retrieval method, a device, a server and a readable storage medium. The server is provided with a slow query scheduling strategy and asearch server. The method comprises the following steps of: acquiring the slow query information of all Mongodb instances based on the slow query scheduling strategy; transferring the slow query information of all Mongodb instances into a search server; obtaining a retrieval filtering condition from the slow query information retrieval request when receiving a slow query information retrieval request sent by a user terminal; retrieving the corresponding slow query information from the search server based on the retrieval filtering condition, and sending the retrieved slow query information tothe user terminal for display. According to the invention, when the slow query information is retrieved, the slow query recording parameter is not required to be started, the retrieval efficiency ofthe slow query information can be greatly improved, the system problem is convenient to be check in time, and the potential safety hazard caused by directly connecting the database can be avoided.

Description

technical field [0001] The present invention relates to the technical field of data processing, and in particular, to a slow query information retrieval method, device, server and readable storage medium. Background technique [0002] There are two methods for the current Mongodb slow query recording method. Turn on the Profiling function or add the parameter –slowms at startup. In actual implementation, when performance problems occur and need to check the slow query, it is often necessary to manually connect to the corresponding database instance. , run the db.system.profile.find() statement to query. [0003] The inventors of the present application have found in actual research that the above solution has many drawbacks: firstly, if the slow query record parameter is always enabled, the set corresponding to the database will keep growing, which is very unfavorable for instance maintenance. The second is that if there is a problem with the system, if you turn on the slow...

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
Inventor 陈阳陈少杰张文明
Owner WUHAN DOUYU NETWORK TECH 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