QFEDS: A GNN-Based Query Featurization Enhancement Method for Cardinality Estimation
The cardinality estimation based on machine learning can overcome the problems existing in the traditional methods effectively. However, most machine learning-based methods adopt the one-hot encoding for query featurization, which largely ignores the structure of the database schema, and fails to fully leverage potential dependencies between tables and columns for query feature optimization. Furthermore, capturing semantic information, such as the distribution of attribute values, presents a significant challenge. To address these challenges, we propose a query featurization enhancement method based on database schema, called QFEDS. The core idea is to introduce Graph Neural Networks for encoding the database schema, with the aim of capturing the connections between SQL queries and database schema items, while integrating statistical data obtained from the database system into query feature encoding. In this paper, we conducted experimental evaluations of QFEDS on the IMDb dataset, and the experimental results on multiple workloads demonstrate that integrating QFEDS into existing query-driven cardinality estimation can effectively reduce the error of the cardinality estimation model.
Authors
- Jun Tie (ORCID: https://orcid.org/0000-0002-0259-2447)
- Chong Sun (ORCID: https://orcid.org/0000-0001-9008-2158)
- Shipeng Cao
- Lifeng Wu (ORCID: https://orcid.org/0000-0002-1210-5411)
- Yang Hu (ORCID: https://orcid.org/0000-0002-2515-4458)
- Bowen Zhang (ORCID: https://orcid.org/0000-0002-3581-9476)
- Ziyi Pan (ORCID: https://orcid.org/0009-0003-3094-4520)
Institutions
- Minzu University of China (CN)
Publication Details
- Published
- 2024-10-11
- DOI
- https://doi.org/10.1109/icebe62490.2024.00054
- Primary Topic
- Face and Expression Recognition
- Type
- article
- Field-Weighted Citation Impact
- 0.00