Learning complex predicates for cardinality estimation using recursive neural networks

被引:1
|
作者
Wang, Zhi [1 ]
Duan, Hancong [1 ]
Cheng, Yamin [1 ]
Min, Geyong [2 ]
机构
[1] Univ Elect Sci & Technol China, Chengdu, Sichuan, Peoples R China
[2] Univ Exeter, Exeter, England
关键词
Cardinality estimation; Recursive neural networks; Complex predicates; Sampling;
D O I
10.1016/j.is.2024.102402
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Cardinality estimation is one of the most vital components in the query optimizer, which has been extensively studied recently. On one hand, traditional cardinality estimators, such as histograms and sampling methods, struggle to capture the correlations between multiple tables. On the other hand, current learning-based methods still suffer from the feature extraction of complex predicates and join relations, which will lead to inaccurate cost estimation, eventually a sub-optimal execution plan. To address these challenges, we present a novel end-to-end architecture leveraging deep learning to provide high-quality cardinality estimation. We exploit an effective feature extraction technique, which can fully make use of the structure of tables, join conditions and predicates. Besides, we use sampling-based technique to construct sample bitmaps for the tables and join conditions respectively. We also utilize the characteristics of predicate tree combined with recursive neural network to extract deep-level features of complex predicates. Finally, we embed these feature vectors into the model, which consists of three components: a recursive neural network, a graph convolutional neural network (GCN) and a multi-set convolutional neural network, to obtain the estimated cardinality. Extensive results conducted on real-world workloads demonstrate that our approach can achieve significant improvement in accuracy and be extended to queries with complex semantics.
引用
收藏
页数:13
相关论文
共 50 条
  • [31] Political Ideology Detection Using Recursive Neural Networks
    Iyyer, Mohit
    Enns, Peter
    Boyd-Graber, Jordan
    Resnik, Philip
    PROCEEDINGS OF THE 52ND ANNUAL MEETING OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS, VOL 1, 2014, : 1113 - 1122
  • [32] Multiarea Inertia Estimation Using Convolutional Neural Networks and Federated Learning
    Poudyal, Abodh
    Tamrakar, Ujjwol
    Trevizan, Rodrigo D.
    Fourney, Robert
    Tonkoski, Reinaldo
    Hansen, Timothy M.
    IEEE SYSTEMS JOURNAL, 2022, 16 (04): : 6401 - 6412
  • [33] Dynamic model of manoeuvrability using Recursive Neural Networks
    Moreira, L
    Soares, CG
    OCEAN ENGINEERING, 2003, 30 (13) : 1669 - 1697
  • [34] Recursive Neural Networks for Density Estimation Over Generalized Random Graphs
    Bongini, Marco
    Rigutini, Leonardo
    Trentin, Edmondo
    IEEE TRANSACTIONS ON NEURAL NETWORKS AND LEARNING SYSTEMS, 2018, 29 (11) : 5441 - 5458
  • [35] Learning and Controlling Multiscale Dynamics in Spiking Neural Networks Using Recursive Least Square Modifications
    Wei, Qinglai
    Han, Liyuan
    Zhang, Tielin
    IEEE TRANSACTIONS ON CYBERNETICS, 2024, 54 (08) : 4603 - 4616
  • [36] QRS Complex Detection Using Novel Deep Learning Neural Networks
    Cai, Wenjie
    Hu, Danqin
    IEEE ACCESS, 2020, 8 : 97082 - 97089
  • [37] QardEst: Using Quantum Machine Learning for Cardinality Estimation of Join Queries
    Kittelmann, Florian
    Sulimov, Pavel
    Stockinger, Kurt
    PROCEEDINGS OF THE 1ST WORKSHOP ON QUANTUM COMPUTING AND QUANTUM-INSPIRED TECHNOLOGY FOR DATA-INTENSIVE SYSTEMS AND APPLICATIONS, Q-DATA, CO-LOCATED WITH ACM INTERNATIONAL CONFERENCE ON DATA MANAGEMENT, SIGMOD, 2024, : 2 - 13
  • [38] Cardinality estimation of activity trajectory similarity queries using deep learning
    Tian, Ruijie
    Zhang, Weishi
    Wang, Fei
    Zhou, Jingchun
    Alhudhaif, Adi
    Alenezi, Fayadh
    INFORMATION SCIENCES, 2023, 646
  • [39] Cardinality Estimation in a Virtualized Network Device Using Online Machine Learning
    Cohen, Reuven
    Nezri, Yuval
    IEEE-ACM TRANSACTIONS ON NETWORKING, 2019, 27 (05) : 2098 - 2110
  • [40] Sample-Efficient Cardinality Estimation Using Geometric Deep Learning
    Reiner, Silvan
    Grossniklaus, Michael
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2023, 17 (04): : 740 - 752