Foundations of Computing and Decision Sciences (May 2024)

Learning From User-Specified Optimizer Hints in Database Systems

  • Zakrzewicz Maciej

DOI
https://doi.org/10.2478/fcds-2024-0011
Journal volume & issue
Vol. 49, no. 2
pp. 181 – 197

Abstract

Read online

Recently, numerous machine learning (ML) techniques have been applied to address database performance management problems, including cardinality estimation, cost modeling, optimal join order prediction, hint generation, etc. In this paper, we focus on query optimizer hints employed by users in their queries in order to mask some Query Optimizer deficiencies. We treat the query optimizer hints, bound to previous queries, as significant additional query metadata and learn to automatically predict which new queries will pose similar performance challenges and should therefore also be supported by query optimizer hints. To validate our approach, we have performed a number of experiments using real-life SQL workloads and we achieved promising results.

Keywords