SQL statement optimization method and device, equipment, storage medium and product
An optimization method and an optimization device technology, which are applied in the field of SQL databases, can solve problems such as manual optimization, and achieve the effects of improving optimization efficiency and reducing optimization time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] figure 2 It is a schematic flow chart of the SQL statement optimization method provided by Embodiment 1 of the present invention, such as figure 2As shown, the execution subject of the SQL statement optimization method provided in this embodiment is a SQL statement optimization device, and the SQL statement optimization device is located in an electronic device, then the SQL statement optimization method provided in this embodiment includes the following steps:
[0047] Step 101, receiving a structured query language SQL statement audit request, and obtaining the SQL statement to be audited according to the SQL statement audit request.
[0048] In this embodiment, the SQL statement optimization device includes a WEB front end, and the user can input the SQL statement to be audited and the database corresponding to the SQL statement through the SQL entry page corresponding to the WEB front end, thereby triggering the SQL statement audit request, and the SQL statement o...
Embodiment 2
[0059] On the basis of the SQL statement optimization method provided in Embodiment 1 of the present invention, step 103 is further refined, including the following steps:
[0060] Step 1031, obtain the audit score corresponding to the audit result, and determine whether the audit score is equal to the preset score; if yes, execute step 1032; if not, execute step 1033.
[0061] In this embodiment, the audit score corresponding to the audit result is obtained, the corresponding audit score is the total audit score, and the audit total score is obtained by adding the audit scores corresponding to multiple audit score items. Comparing the audit score corresponding to the audit result with the preset score to determine whether the audit score corresponding to the audit result is equal to the preset score, wherein the preset score is the preset total score.
[0062] In step 1032, it is determined that the SQL statement does not need to be optimized.
[0063] In this embodiment, if...
Embodiment 3
[0067] image 3 is a schematic flow diagram of the SQL statement optimization method provided in Embodiment 3 of the present invention, as image 3 As shown, on the basis of the SQL statement optimization method provided in Embodiment 1 of the present invention, step 104 is further refined, including the following steps:
[0068] Step 1041, determine the matching optimization strategy according to the deduction items for review.
[0069] In this embodiment, the audit deduction item is determined according to the audit result, and the mapping relationship between the audit deduction item and the optimization strategy is established in advance according to the audit deduction item. The optimization strategies corresponding to different items are different, and the optimization strategy includes SQL statement modification information , according to the mapping relationship to determine the matching optimization strategy.
[0070] Step 1042, optimize the SQL statement by using t...
PUM
![No PUM](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/noPUMSmall.5c5f49c7.png)
Abstract
Description
Claims
Application Information
![application no application](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/application.06fe782c.png)
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap