Lune

ICDE2022Top-tier venue

A Resource-Aware Deep Cost Model for Big Data Query Processing

Yan Li, Liwei Wang, Sheng Wang, Yuan Sun, Zhiyong Peng

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Query Performance Prediction for Concurrent Queries using Graph Embedding cites An End-to-End Learning-based Cost Estimator
  • Graph Transformers for Query Plan Representation: Potentials and Challenges cites An End-to-End Learning-based Cost Estimator
  • Graph Transformers for Query Plan Representation: Potentials and Challenges cites Bao: Making Learned Query Optimization Practical
  • Graph Transformers for Query Plan Representation: Potentials and Challenges cites Cost Models for Big Data Query Processing: Learning, Retrofitting, and Our Findings
  • LEAP: A Low-cost Spark SQL Query Optimizer using Pairwise Comparison cites An End-to-End Learning-based Cost Estimator
  • LEAP: A Low-cost Spark SQL Query Optimizer using Pairwise Comparison cites Bao: Making Learned Query Optimization Practical
  • PilotScope: Steering Databases with Machine Learning Drivers cites Query Performance Prediction for Concurrent Queries using Graph Embedding
  • PilotScope: Steering Databases with Machine Learning Drivers cites Bao: Making Learned Query Optimization Practical
  • PilotScope: Steering Databases with Machine Learning Drivers cites 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 cites Rethink Query Optimization in HTAP Databases
  • Bao: Making Learned Query Optimization Practical cites An End-to-End Learning-based Cost Estimator
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. PilotScope: Steering Databases with Machine Learning DriversRong Zhu, Lianggui Weng, Wenqing Wei, Di Wu et al.VLDB 2024 · 18 citations
  2. Rethink Query Optimization in HTAP DatabasesHaoze Song, Wenchao Zhou, Feifei Li, Xiang Peng et al.SIGMOD 2024 · 7 citations
  3. LEAP: A Low-cost Spark SQL Query Optimizer using Pairwise ComparisonJunhao Ye, Jiahui Li, Lu Chen, Yuren Mao et al.VLDB 2025 · 2 citations
  4. Breaking the Isolation-Freshness Trade-off: Joint Adaptive Storage Optimization for HTAP SystemsZhenghao Ding, Xinyi Zhang, Chao Zhang, Yishen Sun et al.VLDB 2026 · 1 citation
  5. Graph Transformers for Query Plan Representation: Potentials and ChallengesChenghao Lyu, Guillaume Lachaud, Gabriel Lozano, Yanlei DiaoVLDB 2025

Builds on6

  1. An End-to-End Learning-based Cost EstimatorJi Sun, Guoliang LiVLDB 2020 · 251 citations
  2. Bao: Making Learned Query Optimization PracticalRyan Marcus, Parimarjan Negi, Hongzi Mao, Nesime Tatbul et al.SIGMOD 2021 · 242 citations
  3. Query Performance Prediction for Concurrent Queries using Graph EmbeddingXuanhe Zhou, Ji Sun, Guoliang Li, Jianhua FengVLDB 2020 · 96 citations
  4. Cost Models for Big Data Query Processing: Learning, Retrofitting, and Our FindingsTarique Siddiqui, Alekh Jindal, Shi Qiao, Hiren Patel et al.SIGMOD 2020 · 80 citations
  5. Active Learning for ML Enhanced Database SystemsLin Ma, Bailu Ding, Sudipto Das, Adith SwaminathanSIGMOD 2020 · 57 citations

Related papers

  1. LORE: Learning-Based Resource Recommendation for Big Data QueriesYan Li, Liwei Wang, Bolong Zheng, Zhiyong PengICDE 2025 · 2 citations
  2. How Good are Learned Cost Models, Really? Insights from Query Optimization TasksRoman Heinrich, Manisha Luthra, Johannes Wehrstein, Harald Kornmayer et al.SIGMOD 2025 · 13 citations
  3. Efficient Deep Learning Pipelines for Accurate Cost Estimations Over Large Scale Query WorkloadJohan Kok Zhi Kang, Gaurav, Sien Yi Tan, Feng Cheng et al.SIGMOD 2021 · 31 citations
  4. Robust Plan Evaluation based on Approximate Probabilistic Machine LearningAmin Kamali, Verena Kantere, Calisto Zuzarte, Vincent CorvinelliVLDB 2025 · 1 citation
  5. QueryFormer: A Tree Transformer Model for Query Plan RepresentationYue Zhao, Gao Cong, Jiachen Shi, Chunyan MiaoVLDB 2022 · 117 citations
Dusk over the sea between two cliffs drawn in fine vertical lines