Database query optimization method and system

A query optimization and database technology, applied in the database field, can solve problems such as low query efficiency, reduction of enumeration space, database system data skew, and inaccurate correlation cost estimation results.

Pending Publication Date: 2020-09-01
HUAZHONG UNIV OF SCI & TECH +1
View PDF0 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Its purpose is to solve the technical problems of the existing database query optimizer due to the complexity of the database system, the skew and correlation between data, and the cost model is based on a large number of assumptions, resulting in inaccurate cost estimation results, and due to the use of a large number of heuristics The technical problem of missing the query plan with shorter execution time and low query efficiency due to the reduction of enumeration space by the formula strategy

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 and system
  • Database query optimization method and system
  • Database query optimization method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0067] 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, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.

[0068] The basic idea of ​​the present invention is to generate a connection sequence with shorter response time for multi-connection query, thereby improving database query performance. The invention predicts the real response time of the query plan of the specified connection sequence through the neural network; enumerates the connection sequence through the Monte Carlo tree search method, and...

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 discloses a database query optimization method. The database query optimization method comprises a connection sequence selector and a self-adaptive decision network, wherein the connection sequence selector is used for selecting an optimal connection sequence in the query plan and comprises a new database query plan coding scheme, and codes are in one-to-one correspondence with the connection sequence; a value network which is used for predicting the execution time of the query plan, is trained by the query plan and the corresponding real execution time, and is used for reward feedback in Monte Carlo tree search; a Monte Carlo tree search method which is used for simulating and generating multiple different connection sequences, evaluating the quality of the connection sequences through a connection sequence value network, and returning a recommended connection sequence after preset exploration times are reached. And the adaptive decision network is used for distinguishing whether the query statement uses the connection sequence selector or not, so that the overall performance of the optimization system is improved. According to the method and the system, the limitation of a traditional query optimizer can be effectively avoided, and the database query efficiency is improved.

Description

technical field [0001] The invention belongs to the technical field of databases, and more specifically relates to a database query optimization method and system. Background technique [0002] With the rapid development of Internet technology, databases are playing an increasingly important role as a traditional means of supporting data storage and query. Facing the huge amount of data in the database, the efficiency of data retrieval has become one of the important issues that researchers are concerned about. Usually, a relational database optimizes the input query statement through a query optimizer, and the query optimizer is a key component for a database system to obtain good performance. [0003] The SQL statement executed by the database is a declarative language, which only declares what kind of results the user wants, and does not care about how the physical execution engine of the database obtains and returns data. The main job of the query optimizer is to 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/2453G06N3/04
CPCG06F16/2453G06N3/045
Inventor 万琨张霁牛中盈王冲周可李春花
Owner HUAZHONG UNIV OF SCI & TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products