SWatcher+: A Holistic Approach to Deploying Learned Cardinality Estimators in a Dynamic Setting
Yuxi Liu, Vincent Capol, Xiao Hu, Pankaj K. Agarwal, Jun Yang
Key points
From the paper's conclusion- We propose SWatcher+, a framework that adapts learned CE to dynamic workloads by monitoring data updates and query feedback.
Abstract
Cardinality estimation (CE) is crucial in database query optimization. Although recent advances have improved accuracy, deploying machine-learned CE models in dynamic databases remains challenging due to data updates and workload shifts. Retraining can be costly, but existing practices offer little guidance on when and how to update models, resulting in simple periodic retaining strategies that are suboptimal. We propose SWatcher+, a framework that adapts learned CE to dynamic workloads by monitoring data updates and query feedback. SWatcher+ selectively monitors high-impact subqueries for which wrong estimates lead to poor plan performance, and it proactively applies corrections to estimates during query optimization. This strategy enables immediate adaption to data and workload shifts without waiting for full model retraining, and carefully balances the cost and benefit of monitoring and adaption versus retraining. Our experiments show that SWatcher+ offers a better trade-off between query performance and overhead compared with existing approaches, making it a more practical solution for deploying learned CE in dynamic settings.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- MultiCard: Multiple Attribute Cardinality Estimation via Deep LearningarXiv · 2026
- SEFRQO-Plus: a self-evolving query optimizer via large language models and retrieval-augmented generationThe VLDB Journal · 2026
- Workload-Aware Incremental Reclustering in Cloud Data WarehousesProceedings of the ACM on Management of Data · 2026
- When Is One Query per Template Enough? Adapting Learned Cost Models to New HardwarearXiv · 2026
- TraHist: Fast and Accurate Cardinality Estimation for Trajectory Data (Extended Version)arXiv · 2026
- Replace or Augment: Rethinking the Role of Learned Indexes in Relational DatabasesProceedings of the VLDB Endowment · 2026