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

SQL optimization method and device, electronic equipment and computer readable storage medium

An optimization method and a technology for optimizing devices, which are applied in the database field, can solve problems such as cumbersome troubleshooting, poor user experience, and low troubleshooting efficiency, and achieve the effects of improving user experience, reducing difficulty, and improving system efficiency

Inactive Publication Date: 2019-11-01
望海康信(北京)科技股份公司
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] This application provides a structured query language SQL optimization method, device, electronic equipment, and computer-readable storage medium, which can solve the problem that developers and professional database administrators check one by one based on their personal experience, resulting in a sharp increase in system efficiency. When it comes to the cause of the decline, the troubleshooting process is cumbersome, the troubleshooting efficiency is relatively low, and the user experience is poor.

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
  • SQL optimization method and device, electronic equipment and computer readable storage medium
  • SQL optimization method and device, electronic equipment and computer readable storage medium
  • SQL optimization method and device, electronic equipment and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056]Embodiments of the present application are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present application, and should not be construed as limiting the present invention.

[0057] Those skilled in the art will understand that unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the word "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, components, and / or groups thereof. It will be un...

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 structured query language (SQL) optimization method and device, electronic equipment and a computer readable storage medium, and relates to the field of databases. The SQL optimization method comprises the steps: analyzing a to-be-optimized structured query language (SQL) to obtain sub-SQL executing table scanning in the SQL and resource overhead of the sub-SQL; when the resource overhead for executing the sub-SQL exceeds a preset overhead threshold, detecting whether index information exists in a key column in a data table corresponding to the sub-SQL or not; and whenthe index information does not exist in the key column in the data table corresponding to the sub-SQL, generating the corresponding index information, and updating the sub-SQL based on the index information to obtain the updated sub-SQL. According to the SQL optimization method, professional technicians or database administrators are not needed for manual troubleshooting, and troubleshooting difficulty, workload and time cost are reduced, and system efficiency and user experience are improved by automatically optimizing the sub-SQL.

Description

technical field [0001] The present application relates to the technical field of databases, and in particular, the present application relates to a structured query language SQL optimization method, device, electronic equipment and computer-readable storage medium. Background technique [0002] At present, most traditional enterprise-level application systems often face such a problem. The efficiency of the project is very fast when the project is just launched. The main reason is that the business processing logic of most enterprise-level applications is relatively complex, and it is inevitable to use many complex SQL queries such as table associations and nested subqueries. When the data volume of the data table reaches the level of millions or tens of millions , the requirements for SQL will be particularly high. Once a full table scan is performed on a data table with a particularly large amount of data, the system efficiency will drop sharply and there may even be a ris...

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/22G06F16/242G06F16/2453
CPCG06F16/2228G06F16/2433G06F16/2453
Inventor 李智攀
Owner 望海康信(北京)科技股份公司