QueryBooster: Improving SQL Performance Using Middleware Services for Human-Centered Query Rewriting
摘要
SQL query performance is critical in database applications, and query rewriting is a technique that transforms an original query into an equivalent query with a better performance. In a wide range of database-supported systems, there is a unique problem where both the application and database layer are black boxes, and the developers need to use their knowledge about the data and domain to rewrite queries sent from the application to the database for better performance. Unfortunately, existing solutions do not give the users enough freedom to express their rewriting needs. To address this problem, we propose QueryBooster, a novel middleware-based service architecture for human-centered query rewriting, where users can use its expressive and easy-to-use rule language (called VarSQL) to formulate rewriting rules based on their needs. It also allows users to express rewriting intentions by providing examples of the original query and its rewritten query. QueryBooster automatically generalizes them to rewriting rules and suggests high-quality ones. We conduct a user study to show the benefits of VarSQL to formulate rewriting rules. Our experiments on real and synthetic workloads show the effectiveness of the rule-suggesting framework and the significant advantages of using QueryBooster for human-centered query rewriting to improve the end-to-end query performance.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- LLM-R2: A Large Language Model Enhanced Rule-based Rewrite System for Boosting Query Efficiency 引用了 A Learned Query Rewrite System using Monte Carlo Tree Search
- LLM-R2: A Large Language Model Enhanced Rule-based Rewrite System for Boosting Query Efficiency 引用了 WeTune: Automatic Discovery and Verification of Query Rewrite Rules
- Efficient Query Rewrite Rule Discovery via Standardized Enumeration and Learning-to-Rank 引用了 LLM-R2: A Large Language Model Enhanced Rule-based Rewrite System for Boosting Query Efficiency
- Efficient Query Rewrite Rule Discovery via Standardized Enumeration and Learning-to-Rank 引用了 A Learned Query Rewrite System using Monte Carlo Tree Search
- Efficient Query Rewrite Rule Discovery via Standardized Enumeration and Learning-to-Rank 引用了 WeTune: Automatic Discovery and Verification of Query Rewrite Rules
- Efficient Query Rewrite Rule Discovery via Standardized Enumeration and Learning-to-Rank 引用了 Bao: Making Learned Query Optimization Practical
- Cracking Query Bottlenecks: Towards Efficiency-Oriented Text-to-SQL Generation 引用了 LLM-R2: A Large Language Model Enhanced Rule-based Rewrite System for Boosting Query Efficiency
- Cracking Query Bottlenecks: Towards Efficiency-Oriented Text-to-SQL Generation 引用了 WeTune: Automatic Discovery and Verification of Query Rewrite Rules
- Dialect-Agnostic SQL Parsing via LLM-Based Segmentation 引用了 LLM-R2: A Large Language Model Enhanced Rule-based Rewrite System for Boosting Query Efficiency
- Dialect-Agnostic SQL Parsing via LLM-Based Segmentation 引用了 A Learned Query Rewrite System using Monte Carlo Tree Search
- Dialect-Agnostic SQL Parsing via LLM-Based Segmentation 引用了 WeTune: Automatic Discovery and Verification of Query Rewrite Rules
- WeTune: Automatic Discovery and Verification of Query Rewrite Rules 引用了 A Learned Query Rewrite System using Monte Carlo Tree Search
- ReSequel: Robust LLM-assisted Query Rewriting and Optimization using Templatization and Sampling 引用了 LLM-R2: A Large Language Model Enhanced Rule-based Rewrite System for Boosting Query Efficiency
- ReSequel: Robust LLM-assisted Query Rewriting and Optimization using Templatization and Sampling 引用了 A Learned Query Rewrite System using Monte Carlo Tree Search
- ReSequel: Robust LLM-assisted Query Rewriting and Optimization using Templatization and Sampling 引用了 WeTune: Automatic Discovery and Verification of Query Rewrite Rules
引用它的顶会 Paper5
- LLM-R2: A Large Language Model Enhanced Rule-based Rewrite System for Boosting Query EfficiencyZhaodonghui Li, Haitao Yuan, Huiming Wang, Gao Cong 等VLDB 2025 · 52 次引用
- Efficient Query Rewrite Rule Discovery via Standardized Enumeration and Learning-to-RankYuan Zhang, Yuxing Chen, Yuekun Yu, Jinbin Huang 等ICDE 2026
- Cracking Query Bottlenecks: Towards Efficiency-Oriented Text-to-SQL GenerationLi Lin, Yunfeng Shen, Lingfeng Bao, Rongxin Wu 等ISSTA 2026
- Dialect-Agnostic SQL Parsing via LLM-Based SegmentationJunwen An, Kabilan Mahathevan, Manuel RiggerSIGMOD 2026
- ReSequel: Robust LLM-assisted Query Rewriting and Optimization using Templatization and SamplingSaeed Fathollahzadeh, Essam Mansour, Matthias BoehmVLDB 2026
它引用的 Paper4
- Bao: Making Learned Query Optimization PracticalRyan Marcus, Parimarjan Negi, Hongzi Mao, Nesime Tatbul 等SIGMOD 2021 · 242 次引用
- A Learned Query Rewrite System using Monte Carlo Tree SearchXuanhe Zhou, Guoliang Li, Chengliang Chai, Jianhua FengVLDB 2022 · 85 次引用
- WeTune: Automatic Discovery and Verification of Query Rewrite RulesZhaoguo Wang, Zhou Zhou, Yicun Yang, Haoran Ding 等SIGMOD 2022 · 35 次引用
- Shedding Light on Opaque Application QueriesKapil Khurana, Jayant R. HaritsaSIGMOD 2021 · 3 次引用
相关 Paper
- ARG: Testing Query Rewriters via Abstract Rule Guided FuzzingDawei Li, Yuxiao Guo, Qifan Liu, Jie Liang 等ASE 2025
- SlabCity: Whole-Query Optimization using Program SynthesisRui Dong, Jie Liu, Yuxuan Zhu, Cong Yan 等VLDB 2023 · 11 次引用
- GenRewrite: Query Rewriting via Large Language ModelsJie Liu, Barzan MozafariSIGMOD 2026 · 27 次引用
- RaFe: Ranking Feedback Improves Query Rewriting for RAGShengyu Mao, Yong Jiang, Boli Chen, Xiao Li 等EMNLP Findings 2024 · 19 次引用
- Enhancing Conversational Search: Large Language Model-Aided Informative Query RewritingFanghua Ye, Meng Fang, Shenghui Li, Emine YilmazEMNLP Findings 2023 · 35 次引用
