paper-with-me

홈 › Papers

CardOOD: Robust Query-driven Cardinality Estimation under Out-of-Distribution

2024-12-08 · Rui Li, Kangfei Zhao, Jeffrey Xu Yu, Guoren Wang

Query-driven learned estimators are accurate, flexible, and lightweight alternatives to traditional estimators in query optimization. However, existing query-driven approaches struggle with the Out-of-distribution (OOD) problem, where the test workload distribution differs from the training workload, leading to performancedegradation. In this paper, we present CardOOD, a general learning framework designed to construct robust query-driven cardinality estimators that are resilient against the OOD problem. Our framework focuses on offline training algorithms that develop one-off models from a static workload, suitable for model initialization and periodic retraining. In CardOOD, we extend classical transfer/robust learning techniques to train query-driven cardinalityestimators, and the algorithms fall into three categories: representation learning, data manipulation, and new learning strategies. As these learning techniques are originally evaluated in computervision tasks, we also propose a new learning algorithm that exploits the property of cardinality estimation. This algorithm, lying in the category of new learning strategy, models the partial order constraint of cardinalities by a self-supervised learning task. Comprehensive experimental studies demonstrate the efficacy of the algorithms of CardOOD in mitigating the OOD problem to varying extents. We further integrate CardOOD into PostgreSQL, showcasing its practical utility in query optimization.

📄 PDF Abstract BibTeX arXiv:2412.05864

Code (0)

등록된 구현이 없습니다.

Tasks

Representation LearningSelf-Supervised Learning

Similar Papers 제목 키워드 기반

Data-Agnostic Cardinality Learning from Imperfect Workloads

2025-06-19 · Peizhi Wu, Rong Kang, Tieying Zhang, Jianjun Chen 외

Cardinality estimation (CardEst) is a critical aspect of query optimization. Traditionally, it leverages statistics built directly over the data. However, organizational policies (e.g., regulatory compliance) may restric…

CoLSE: A Lightweight and Robust Hybrid Learned Model for Single-Table Cardinality Estimation using Joint CDF

2025-12-14 · Lankadinee Rathuwadu, Guanli Liu, Christopher Leckie, Renata Borovica-Gajic arxiv

Cardinality estimation (CE), the task of predicting the result size of queries is a critical component of query optimization. Accurate estimates are essential for generating efficient query execution plans. Recently, mac…

ZeroCard: Cardinality Estimation with Zero Dependence on Target Databases -- No Data, No Query, No Retraining

2025-10-09 · Xianghong Xu, Rong Kang, Xiao He, Lei Zhang 외 arxiv

Cardinality estimation is a fundamental task in database systems and plays a critical role in query optimization. Despite significant advances in learning-based cardinality estimation methods, most existing approaches re…

Adaptive Cardinality Estimation

2017-11-22 · Oleg Ivanov, Sergey Bartunov

In this paper we address cardinality estimation problem which is an important subproblem in query optimization. Query optimization is a part of every relational DBMS responsible for finding the best way of the execution …

A Lightweight Learned Cardinality Estimation Model

2025-08-13 · Yaoyu Zhu, Jintao Zhang, Guoliang Li, Jianhua Feng arxiv

Cardinality estimation is a fundamental task in database management systems, aiming to predict query results accurately without executing the queries. However, existing techniques either achieve low estimation accuracy o…

Computational Efficiency