Lune

ICDE2026顶会

TemplateQO: Template-Aware and Scalable Query Optimization with Data-Efficient Learning

Pengfei Zheng, Guoneng Li, Ling Xu, Rong Zhu, Yan Li, Bolong Zheng

2026年份

摘要

Learning-based query optimizers have demonstrated strong performance across various scenarios. However, most of these approaches rely heavily on estimated cardinalities, and inaccuracies in these estimates may significantly degrade their effectiveness in certain cases. Moreover, in our experiments we observe as the training data grows, these optimizers often encounter performance plateaus, indicating limited ability to leverage richer data distributions. To address these two challenges, we develop a novel query optimizer TemplateQO, which groups queries according to the canonical join template they instantiate, and employs a unified model to optimize over all templates. We assign a unified set of candidate query plans to each template, thus eliminating the need to encode execution plans. To facilitate information flow between templates, we propose a feature extractor and a feature-fusion Transformer. These two modules are shared for all templates, in order to capture relations across tables and columns. By focusing on precise, query-level features instead of potentially inaccurate estimated plan featuers, TemplateQO can more effectively learn the underlying mapping between queries and their execution plans. Moreover, to efficiently adapt to evolving workloads, we introduce a lightweight fine-tuning method. The fine-tuning method preserves previously learned knowledge, enabling effective continual learning. Experiments indicate that TemplateQO effectively improves query performance, exhibits strong scalability, and significantly lowers planning time.

问问这篇 Paper

问问你的智能体。

Lune 读过与它相关的顶会 Paper,每个回答都会注明依据哪几篇。

可以从这些问题问起

智能体调用

Lunesearch_papers

在 Lune 里问

免费开始,无需绑卡

相关 Paper

黄昏的海面,两侧是细线勾勒的悬崖