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

Method and device for performance statistics of structured query language SQL

A structured query and performance technology, applied in the computer field, can solve problems such as uncontrollable and unknown, inaccurate analysis, and inability to fully merge, and achieve the effect of convenient statistics and efficient performance statistics

Active Publication Date: 2021-10-12
MICRO DREAM TECHTRONIC NETWORK TECH CHINACO
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the process of realizing the present invention, the inventor finds that there are at least the following problems in the prior art: on the one hand, although the Antlr syntax analyzer can parse the parameters of the SQL statement very accurately, it must be nested in the project to be used to achieve For the analysis of SQL statements, since Antlr itself contains a lot of grammatical analysis, there will be redundancy in nested projects, making the project more cumbersome; It is more accurate to parse SQL statements with a relatively short length, but because the number and length of parameters are uncontrollable and unknown, if you encounter SQL statements with many parameters and long parameter lengths, the parsing will be inaccurate , therefore, it is impossible to completely merge similar SQL statements, and the monitoring of SQL statements cannot have a good effect

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 performance statistics of structured query language SQL
  • Method and device for performance statistics of structured query language SQL
  • Method and device for performance statistics of structured query language SQL

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0023] like figure 1 As shown, it is a method flowchart of a structured query language SQL performance statistics in an embodiment of the present invention, including:

[0024] 101. Acquire log information of the SQL type, where the log information includes SQL statements and execution performance information of the SQL statements;

[0025] 102. For each piece of log information, analyze the SQL statement in the current log information, and divide the SQL sta...

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

Embodiments of the present invention provide a method and device for statistics of structured query language SQL performance. The method includes: acquiring SQL-type log information, the log information including SQL statements and execution performance information of the SQL statements; A piece of log information, parsing the SQL statement, splitting the SQL statement according to a predetermined splitting character to obtain a split SQL statement; using the split SQL statement as the first index information of the performance statistics list, according to the second An index information, storing the execution performance information of the SQL statement in the current log information to the performance statistics list; according to the execution performance information of the SQL statement in the current log information stored in the performance statistics list, counting the current log information The performance data of the SQL statement. Through the invention, the performance statistics of SQL statements can be performed quickly and efficiently, and the SQL statements with abnormal problems can be accurately searched.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for statistics of the performance of a structured query language SQL. Background technique [0002] At present, business systems are usually divided into multiple modules, and each module has data access operations. Usually, data access operations in this mode are implemented by calling external interfaces or database operation statements. Due to some uncertainties in the process of calling external interfaces or performing database operations, it is impossible to determine the impact of external interfaces or database operations on business system performance. Therefore, it is necessary to monitor external interfaces or database operations, such as monitoring external The running time of the interface or database operation, etc., when the monitoring finds that the time is abnormal, the development and operation and maintenance personnel can be notified in 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 Patents(China)
IPC IPC(8): G06F16/242G06F16/22G06F16/25G06F40/289G06F11/34
CPCG06F11/3419G06F11/3476G06F16/2272G06F16/2433G06F16/252G06F16/258G06F40/279
Inventor 邱帅兵任文越王崇
Owner MICRO DREAM TECHTRONIC NETWORK TECH CHINACO