Data table connection sequence selection method based on machine learning
A connection sequence and machine learning technology, applied in the database field, can solve problems such as low query efficiency, achieve good query performance, accurate data characteristics, and low time-consuming effects
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2021-06-04
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The invention relates to the field of databases, in particular to a machine learning-based data table connection sequence selection method. Background technique
[0002] Query operation is the basic operation of relational database, and query efficiency is an important index of database system. So query optimization has become an important research direction in the field of database. Query optimization is to build an execution plan with the least cost, so as to achieve the lowest real query time during query execution and achieve a good user experience. Usually, query optimization includes aspects such as cardinality estimation, cost model, and connection order selection. The effect of query optimization directly affects the performance of database applications.
[0003] The most difficult point of the database query optimizer is the problem of selecting the order of multi-table connection. Solving this problem is very complicated and expensive. Be...
Examples
Embodiment Construction
[0128] The specific embodiments of the present invention are described below so that those skilled in the art can understand the present invention, but it should be clear that the present invention is not limited to the scope of the specific embodiments. For those of ordinary skill in the art, as long as various changes Within the spirit and scope of the present invention defined and determined by the appended claims, these changes are obvious, and all inventions and creations using the concept of the present invention are included in the protection list.
[0129] Such as Figure 1~2 As shown, a data table connection sequence selection method based on machine learning includes the following steps:
[0130] S1. Encoding the SQL statement to generate feature vectors of columns, data tables and connection relationships respectively;
[0131] In this embodiment, the data table connection order selection method based on machine learning is constructed on the mainstream database, r...