Supercharge Your Innovation With Domain-Expert AI Agents!

Database query optimization method based on reinforcement learning and graph attention network

A query optimization and reinforcement learning technology, applied in the field of database query optimization, can solve the problems of query execution space that consumes a lot of time, complex query statement connection relationships, and huge query execution plan space.

Active Publication Date: 2021-02-05
UNIV OF ELECTRONICS SCI & TECH OF CHINA
View PDF9 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0029]The purpose of this invention is to solve the problem that when the connection relationship of existing query statements is very complicated, the query execution plan space will be very large, and it will take a lot of time to search the entire query execution space technical problem

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
  • Database query optimization method based on reinforcement learning and graph attention network
  • Database query optimization method based on reinforcement learning and graph attention network

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, and are not intended to limit the present invention, that is, the described embodiments are only some of the embodiments of the present invention, but not all of the embodiments. The components of the embodiments of the invention generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations.

[0047]Accordingly, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the invention. Based on the embodiments of the ...

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 relates to the technical field of databases, provides a database query optimization method based on reinforcement learning and a graph attention network, and aims at solving the technical problems that when the connection relationship of existing query statements is very complex, the query execution plan space is very huge, and a large amount of time is consumed for searching for thewhole query execution space. According to the main scheme, the method comprises the steps of: randomly generating a query statement in a database and executing the query statement, splitting an execution plan tree corresponding to the query statement from a root node, and recording a connection relationship of each node; initializing a Qnetwork parameter w in the DQN model, enabling a Qnetwork inthe DQN model to employ a GAT graph attention network, enabling the coding feature matrix and the graph description set Edge to serve as network input, and training the DQN model; and for a query statement, initializing graph description and coding of the query statement, and generating a connection relationship by using the DQN model obtained by training in the step 2 until all tables are connected to generate a complete query plan.

Description

technical field [0001] The invention relates to a database query optimization method based on reinforcement learning and graph attention network. For large-scale multi-connection queries, an optimal database query execution plan can be obtained in a short period of time, thereby reducing the execution time of queries in the database. Background technique [0002] For a query statement, the database cannot execute it directly. The database needs to first parse the query statement, then the optimizer generates the corresponding query execution plan, and finally hand it over to the execution engine to execute the plan. In the present invention, an effective solution is proposed on how to generate a better query plan for multi-connection queries in a shorter period of time. [0003] The technical solutions in the two existing technologies are closest to the proposal of this application: [0004] 1. Chinese invention patent, patent name: a database multi-connection query optim...

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/21G06F16/22G06F16/242G06F16/245G06F16/25G06N20/00
CPCG06F16/217G06F16/2246G06F16/2433G06F16/245G06F16/25G06N20/00Y02D10/00
Inventor 詹思瑜周维清王玉林卢国明戴波
Owner UNIV OF ELECTRONICS SCI & TECH OF CHINA
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More