A Comparative Exploration of ML Techniques for Tuning Query Degree of Parallelism
Zhiwei Fan, Rathijit Sen, Paraschos Koutris, Aws Albarghouthi

TL;DR
This paper investigates how machine learning models can be used to tune the degree of parallelism in SQL Server queries, improving performance prediction and automatic DOP selection in multi-core environments.
Contribution
It introduces a regression-based approach to tune query parallelism using ML, addressing the gap of intra-parallelism effects in query performance prediction.
Findings
Simple query plan features can accurately predict performance.
ML models effectively capture speedup trends with parallelism.
The approach generalizes across different query templates and scales.
Abstract
There is a large body of recent work applying machine learning (ML) techniques to query optimization and query performance prediction in relational database management systems (RDBMSs). However, these works typically ignore the effect of \textit{intra-parallelism} -- a key component used to boost the performance of OLAP queries in practice -- on query performance prediction. In this paper, we take a first step towards filling this gap by studying the problem of \textit{tuning the degree of parallelism (DOP) via ML techniques} in Microsoft SQL Server, a popular commercial RDBMS that allows an individual query to execute using multiple cores. In our study, we cast the problem of DOP tuning as a {\em regression} task, and examine how several popular ML models can help with query performance prediction in a multi-core setting. We explore the design space and perform an extensive…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Database Systems and Queries · Data Management and Algorithms · Data Stream Mining Techniques
