Automatic method and system for realizing database SQL optimization execution based on artificial intelligence
An automated system and artificial intelligence technology, applied in database indexing, neural learning methods, structured data retrieval, etc., can solve the problems of SQL execution efficiency not achieving good results, waste of resources, unable to achieve the expected optimization efficiency, etc. The effect of SQL execution efficiency and improving SQL writing ability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0083] The automatic method of realizing database SQL optimization execution based on artificial intelligence of the present invention, this method is to optimize the SQL statement of database table structure and execution according to different database types and rules by artificial intelligence; Specifically as follows:
[0084] S1. Complete the optimization training of SQL statements through artificial intelligence machine learning algorithms, and obtain SQL statements with perfect performance;
[0085] S2. Collect the optimized SQL statements, give regular feedback reports, compare the source SQL statements with the final optimized SQL statements, and give optimization analysis results at the same time.
[0086] In this embodiment, the database table structure optimization method includes the following contents:
[0087] ①. The minimum data type to which the stored data is adjusted;
[0088] ②. Use simple data types;
[0089] ③, the field is not null;
[0090] ④. Reduce...
Embodiment 2
[0116] The automatic system for implementing database SQL optimization based on artificial intelligence of the present invention, the system includes,
[0117] The acquisition unit is used to implement SQL optimization methods and rules through artificial intelligence, and to produce a large amount of data to obtain perfect SQL optimization statements through deep learning and machine learning;
[0118] The optimization unit is used to process the database table structure and SQL according to the neural network model and the evolutionary algorithm to obtain optimized results.
[0119] Preferably, the optimization unit includes,
[0120] Obtaining a module for obtaining a syntax tree structure through a parser;
[0121] Extraction module 1, used to extract table relationships;
[0122] Extraction module 2, used to extract join, where, group and order condition fields;
[0123] The third extraction module is used to extract the table structure information involved in SQL;
...
Embodiment 3
[0140] The embodiment of the present invention also provides a computer-readable storage medium, wherein a plurality of instructions are stored, and the instructions are loaded by the processor, so that the processor executes the automation of database SQL optimization execution based on artificial intelligence in any embodiment of the present invention method. Specifically, a system or device equipped with a storage medium may be provided, on which a software program code for realizing the functions of any of the above embodiments is stored, and the computer (or CPU or MPU of the system or device) ) to read and execute the program code stored in the storage medium.
PUM
Abstract
Description
Claims
Application Information
- 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, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com