Lequa: A Learning-Based Query-Aware Framework for Selective Query Optimization
Guoneng Li, Pengfei Zheng, Ling Xu, Yan Li, Bolong Zheng
摘要
Learning-based query optimizers have shown promise in improving database performance. However, existing learning-based methods often fail to consistently improve end-toend performance across all queries due to inference overhead and variability in both query characteristics and data distributions. To address these challenges, we propose Lequa, a learningbased query-aware framework that selects appropriate optimization strategies for each query based on expected performance gain and query complexity. Lequa addresses different queries through three components. The Unprofitable Query Recognizer component identifies queries unlikely to benefit from learned optimization and routes them directly to the default optimizer, avoiding unnecessary inference. The Struct Planner component uses a lightweight model based on dataset-agnostic features to handle queries whose optimal plans can be inferred from general structural patterns. For more complex queries where general patterns fall short, the Detail Planner component leverages datasetspecific features to produce higher-quality plans. Together, these components enable Lequa to generalize across diverse workloads while selectively applying fine-grained optimization where it matters most. Experiments on real-world workloads show that our approach consistently outperforms state-of-the-art baselines, achieving up to 55% reduction in end-to-end latency compared to PostgreSQL.
问问这篇 Paper
问问你的智能体。
Lune 读过与它相关的顶会 Paper,每个回答都会注明依据哪几篇。
相关 Paper
- Practical Parameterized Query Optimization via Efficient Plan Reuse and List-wise RankingHai Lan, Yang Yu, Zhifeng Bao, Zi Huang 等SIGMOD 2026
- Cost-based or Learning-based? A Hybrid Query Optimizer for Query Plan SelectionXiang Yu, Chengliang Chai, Guoliang Li, Jiabin LiuVLDB 2022 · 被引用 82 次
- LIMAO: A Framework for Lifelong Modular Learned Query OptimizationQihan Zhang, Shaolin Xie, Ibrahim SabekVLDB 2025 · 被引用 4 次
- Athena: An Effective Learning-based Framework for Query Optimizer Performance ImprovementRunzhong Li, Qilong Li, Haotian Liu, Rui Mao 等SIGMOD 2025 · 被引用 3 次
- Lero: A Learning-to-Rank Query OptimizerRong Zhu, Wei Chen, Bolin Ding, Xingguang Chen 等VLDB 2023 · 被引用 102 次
