A Resource-Aware Deep Cost Model for Big Data Query Processing
摘要
The efficiency of query processing is highly affected by execution plans and allocated resources in the Spark SQL big data processing engine. However, the cost models for Spark SQL are still based on hand-crafted rules. The learning-based cost models have been proposed for relational databases, but it does not consider the effect of the available resources. To address this, we propose a resource-aware deep learning model that can automatically predict the execution time of query plans based on historical data. To train our model, we embed the query execution plans based on the query plan tree and extract features from the allocated resources. A deep learning model with adaptive attention mechanisms is then trained to predict the execution time of query plans. The experiments show that our deep cost model can achieve higher accuracy in predicting the execution time of query plans compared to traditional rule-based methods and relational database learning-based optimizers.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Query Performance Prediction for Concurrent Queries using Graph Embedding 引用了 An End-to-End Learning-based Cost Estimator
- Graph Transformers for Query Plan Representation: Potentials and Challenges 引用了 An End-to-End Learning-based Cost Estimator
- Graph Transformers for Query Plan Representation: Potentials and Challenges 引用了 Bao: Making Learned Query Optimization Practical
- Graph Transformers for Query Plan Representation: Potentials and Challenges 引用了 Cost Models for Big Data Query Processing: Learning, Retrofitting, and Our Findings
- LEAP: A Low-cost Spark SQL Query Optimizer using Pairwise Comparison 引用了 An End-to-End Learning-based Cost Estimator
- LEAP: A Low-cost Spark SQL Query Optimizer using Pairwise Comparison 引用了 Bao: Making Learned Query Optimization Practical
- PilotScope: Steering Databases with Machine Learning Drivers 引用了 Query Performance Prediction for Concurrent Queries using Graph Embedding
- PilotScope: Steering Databases with Machine Learning Drivers 引用了 Bao: Making Learned Query Optimization Practical
- PilotScope: Steering Databases with Machine Learning Drivers 引用了 Cost Models for Big Data Query Processing: Learning, Retrofitting, and Our Findings
- Breaking the Isolation-Freshness Trade-off: Joint Adaptive Storage Optimization for HTAP Systems 引用了 Rethink Query Optimization in HTAP Databases
- Bao: Making Learned Query Optimization Practical 引用了 An End-to-End Learning-based Cost Estimator
引用它的顶会 Paper6
- PilotScope: Steering Databases with Machine Learning DriversRong Zhu, Lianggui Weng, Wenqing Wei, Di Wu 等VLDB 2024 · 18 次引用
- Rethink Query Optimization in HTAP DatabasesHaoze Song, Wenchao Zhou, Feifei Li, Xiang Peng 等SIGMOD 2024 · 7 次引用
- LEAP: A Low-cost Spark SQL Query Optimizer using Pairwise ComparisonJunhao Ye, Jiahui Li, Lu Chen, Yuren Mao 等VLDB 2025 · 2 次引用
- Breaking the Isolation-Freshness Trade-off: Joint Adaptive Storage Optimization for HTAP SystemsZhenghao Ding, Xinyi Zhang, Chao Zhang, Yishen Sun 等VLDB 2026 · 1 次引用
- Graph Transformers for Query Plan Representation: Potentials and ChallengesChenghao Lyu, Guillaume Lachaud, Gabriel Lozano, Yanlei DiaoVLDB 2025
它引用的 Paper6
- An End-to-End Learning-based Cost EstimatorJi Sun, Guoliang LiVLDB 2020 · 251 次引用
- Bao: Making Learned Query Optimization PracticalRyan Marcus, Parimarjan Negi, Hongzi Mao, Nesime Tatbul 等SIGMOD 2021 · 242 次引用
- Query Performance Prediction for Concurrent Queries using Graph EmbeddingXuanhe Zhou, Ji Sun, Guoliang Li, Jianhua FengVLDB 2020 · 96 次引用
- Cost Models for Big Data Query Processing: Learning, Retrofitting, and Our FindingsTarique Siddiqui, Alekh Jindal, Shi Qiao, Hiren Patel 等SIGMOD 2020 · 80 次引用
- Active Learning for ML Enhanced Database SystemsLin Ma, Bailu Ding, Sudipto Das, Adith SwaminathanSIGMOD 2020 · 57 次引用
相关 Paper
- LORE: Learning-Based Resource Recommendation for Big Data QueriesYan Li, Liwei Wang, Bolong Zheng, Zhiyong PengICDE 2025 · 2 次引用
- How Good are Learned Cost Models, Really? Insights from Query Optimization TasksRoman Heinrich, Manisha Luthra, Johannes Wehrstein, Harald Kornmayer 等SIGMOD 2025 · 13 次引用
- Efficient Deep Learning Pipelines for Accurate Cost Estimations Over Large Scale Query WorkloadJohan Kok Zhi Kang, Gaurav, Sien Yi Tan, Feng Cheng 等SIGMOD 2021 · 31 次引用
- Robust Plan Evaluation based on Approximate Probabilistic Machine LearningAmin Kamali, Verena Kantere, Calisto Zuzarte, Vincent CorvinelliVLDB 2025 · 1 次引用
- QueryFormer: A Tree Transformer Model for Query Plan RepresentationYue Zhao, Gao Cong, Jiachen Shi, Chunyan MiaoVLDB 2022 · 117 次引用
