arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2108.03906cs.AIcs.DBcs.SE
收藏

“是什么让我的查询变慢?“:用于SQL队列分析的子组发现

"What makes my queries slow?": Subgroup Discovery for SQL Workload Analysis

Univ Lyon(里昂大学);INSA Lyon(里昂国立应用科学学院);CNRS(法国国家科学研究中心);Infologic(英孚洛吉克公司)

Youcef Remil, Anes Bendimerad, Romain Mathonat, Philippe Chaleat, Mehdi Kaytoue

摘要:

在数据库管理员(DBA)的日常任务中,分析查询工作负载以识别模式问题并提高性能至关重要。尽管DBA可以轻松地查明导致性能问题的重复查询,但自动识别仅共享某些属性(模式)的查询子集并同时促进某些目标度量(如执行时间)仍然具有挑战性。模式定义在查询子句、环境变量、数据库警报和指标的组合上,并帮助回答诸如是什么使SQL查询变慢之类的问题。是什么让I/O通信变得更高?在一个巨大的搜索空间中自动发现这些模式,并将它们作为假设提供,以帮助定位问题和根本原因,这在可解释的人工智能中非常重要。为了解决这个问题,我们引入了一种基于子组发现的原始方法。我们将展示如何实例化和开发这个通用的数据挖掘框架,以确定SQL工作负载问题的潜在原因。我们相信,这种数据挖掘技术是不平凡的应用数据库管理员。因此,我们还提供了一个可视化工具,交互式知识发现。我们分析了来自我们公司的数百个数据库的一周工作量,提供数据集和源代码,并通过实验证明可以发现有见地的假设。

英文摘要:

Among daily tasks of database administrators (DBAs), the analysis of query workloads to identify schema issues and improving performances is crucial. Although DBAs can easily pinpoint queries repeatedly causing performance issues, it remains challenging to automatically identify subsets of queries that share some properties only (a pattern) and simultaneously foster some target measures, such as execution time. Patterns are defined on combinations of query clauses, environment variables, database alerts and metrics and help answer questions like what makes SQL queries slow? What makes I/O communications high? Automatically discovering these patterns in a huge search space and providing them as hypotheses for helping to localize issues and root-causes is important in the context of explainable AI. To tackle it, we introduce an original approach rooted on Subgroup Discovery. We show how to instantiate and develop this generic data-mining framework to identify potential causes of SQL workloads issues. We believe that such data-mining technique is not trivial to apply for DBAs. As such, we also provide a visualization tool for interactive knowledge discovery. We analyse a one week workload from hundreds of databases from our company, make both the dataset and source code available, and experimentally show that insightful hypotheses can be discovered.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑