AI Chat Paper
Note: Please note that the following content is generated by AMiner AI. SciOpen does not take any responsibility related to this content.
{{lang === 'zh_CN' ? '文章概述' : 'Summary'}}
{{lang === 'en_US' ? '中' : 'Eng'}}
Chat more with AI
Article Link
Collect
Submit Manuscript
Show Outline
Outline
Show full outline
Hide outline
Outline
Show full outline
Hide outline
Regular Paper

Cardinality Estimator: Processing SQL with a Vertical Scanning Convolutional Neural Network

School of Software Engineering, Chengdu University of Information Technology, Chengdu 610225, China
School of Management, Chengdu University of Information Technology, Chengdu 610225, China
Beijing Huawei Digital Technologies Co., Ltd., Beijing 100085, China
School of Computer and Information Engineering, Nanning Normal University, Nanning 530299, China
School of Information Science and Engineering, Yunnan University, Kunming 650500, China
School of Software, Jiangxi Normal University, Nanchang 330022, China
Guangxi College of Education, Nanning 530007, China
Show Author Information

Abstract

Although the popular database systems perform well on query optimization, they still face poor query execution plans when the join operations across multiple tables are complex. Bad execution planning usually results in bad cardinality estimations. The cardinality estimation models in traditional databases cannot provide high-quality estimation, because they are not capable of capturing the correlation between multiple tables in an effective fashion. Recently, the state-of-the-art learning-based cardinality estimation is estimated to work better than the traditional empirical methods. Basically, they used deep neural networks to compute the relationships and correlations of tables. In this paper, we propose a vertical scanning convolutional neural network (abbreviated as VSCNN) to capture the relationships between words in the word vector in order to generate a feature map. The proposed learning-based cardinality estimator converts Structured Query Language (SQL) queries from a sentence to a word vector and we encode table names in the one-hot encoding method and the samples into bitmaps, separately, and then merge them to obtain enough semantic information from data samples. In particular, the feature map obtained by VSCNN contains semantic information including tables, joins, and predicates about SQL queries. Importantly, in order to improve the accuracy of cardinality estimation, we propose the negative sampling method for training the word vector by gradient descent from the base table and compress it into a bitmap. Extensive experiments are conducted and the results show that the estimation quality of q-error of the proposed vertical scanning convolutional neural network based model is reduced by at least 14.6% when compared with the estimators in traditional databases.

Electronic Supplementary Material

Download File(s)
jcst-36-4-762-Highlights.pdf (201.9 KB)

References

【1】
【1】
 
 
Journal of Computer Science and Technology
Pages 762-777

{{item.num}}

Comments on this article

Go to comment

< Back to all reports

Review Status: {{reviewData.commendedNum}} Commended , {{reviewData.revisionRequiredNum}} Revision Required , {{reviewData.notCommendedNum}} Not Commended Under Peer Review

Review Comment

Close
Close
Cite this article:
Qiao S-J, Yang G-P, Han N, et al. Cardinality Estimator: Processing SQL with a Vertical Scanning Convolutional Neural Network. Journal of Computer Science and Technology, 2021, 36(4): 762-777. https://doi.org/10.1007/s11390-021-1351-7

1051

Views

8

Crossref

6

Web of Science

12

Scopus

3

CSCD

Received: 01 February 2021
Accepted: 01 July 2021
Published: 05 July 2021
©Institute of Computing Technology, Chinese Academy of Sciences 2021