Asynchronous SQL connection query optimization method based on reinforcement learning DQN algorithm
A technology of reinforcement learning and connection query, applied in the computer field, can solve problems such as forgetting and poor model training results, and achieve the effects of accelerated training speed, reduced training time, and fast convergence speed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0076] Embodiment 1: as Figure 1-Figure 8 As shown, the asynchronous SQL connection query optimization method based on the reinforcement learning DQN algorithm, the specific steps of the method are as follows:
[0077] Step1. Analyze and decompose the SQL statement according to the query predicate, and use the abstract syntax tree AST algorithm to store the parsed SQL as a query tree structure;
[0078] Step2. Put the AST tree structure into the DQN optimizer in the DRL network to select the connection action; each time a connection selection is performed, the generated connection tree containing a new table is passed into the Tree-LSTM+Attention network , obtain a long-term reward signal after encoding and calculation, and finally generate a state representation State of a query tree containing the connection order of all tables that the Agent considers optimal;
[0079] Step3. Convert the final state representation State into an actual query tree, input it into the executi...
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