@inproceedings{3a095ca33c184c5c8f5e40acbfc6e1ec,
title = "SPQO: Learning to Safely Reuse Cached Plans for Dynamic Workloads",
abstract = "Learning-based Parametric Query Optimization (PQO) methods excel in static workloads with precise cached plan selection but struggle with dynamic workloads. When facing a parametric query outside query parameter distribution in its training workload, suboptimal plan could be selected and this plan would be unsafely reused. The root cause of this limitation is the plan selection model cannot adapt to distribution drifts in query parameters. In order to extend learning-based Parametric Query Optimization for safely reusing cached plans in dynamic workloads, we introduce a novel approach to predict and avoid reusing a suboptimal plan, referred to as SPQO. As each cached plan has specific reuse decision boundary, each cached plan is assigned to an independent binary classifier. In the offline phase, we employ an under-sampling algorithm integrated with Tomek Links technique to effectively train these classifiers under class imbalance setting. During the online phase, we implement hybrid adjustment strategies based on incremental learning, continuously training these classifiers with each prediction and query feedback. Our experiments show SPQO can reduce the 95th percentile relative query latency by 10× in static and 103× in dynamic workloads, and achieve better cache hit rates on various workloads.",
keywords = "Machine learning, Parametric query optimization, Query optimization, Query plan cache",
author = "Sijia Li and Peng Cai and Yiqi Shen and Huiqi Hu and Rong Zhang and Xuan Zhou and Xuquan Qing and Ri Zhao",
note = "Publisher Copyright: {\textcopyright} The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd. 2024.; 29th International Conference on Database Systems for Advanced Applications, DASFAA 2024 ; Conference date: 02-07-2024 Through 05-07-2024",
year = "2024",
doi = "10.1007/978-981-97-5552-3\_21",
language = "英语",
isbn = "9789819755516",
series = "Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)",
publisher = "Springer Science and Business Media Deutschland GmbH",
pages = "315--330",
editor = "Makoto Onizuka and Jae-Gil Lee and Yongxin Tong and Chuan Xiao and Yoshiharu Ishikawa and Kejing Lu and Sihem Amer-Yahia and H.V. Jagadish",
booktitle = "Database Systems for Advanced Applications - 29th International Conference, DASFAA 2024, Proceedings",
address = "德国",
}