arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2207.06820cs.DB
收藏

基于模糊匹配的数据库负载优化

Using Fuzzy Matching of Queries to optimize Database workloads

Sweta Singh, Vaibhav Kulkarni, Mario Briggs, Deepak Mahajan, Eitan Farchi

摘要:

有向无环图(DAG)通常用于数据库和大数据计算引擎,如Apache Spark,用于表示查询的执行计划。我们将这样的图称为查询定向非循环图(QDAG)。本文使用相似性哈希来得到指纹,使得指纹体现了QDAG查询的计算需求。由此获得的指纹可以用于基于过去执行的具有类似QDAG的查询来预测查询的运行时行为。我们讨论了两种获得指纹的方法,它们的优点和缺点,以及如何将这两种方法的各个方面结合起来以改进预测。使用混合的方法,我们证明,我们能够预测运行时的QDAG的行为超过80%的准确性。

英文摘要:

Directed Acyclic Graphs (DAGs) are commonly used in Databases and Big Data computational engines like Apache Spark for representing the execution plan of queries. We refer to such graphs as Query Directed Acyclic Graphs (QDAGs). This paper uses similarity hashing to arrive at a fingerprint such that the fingerprint embodies the compute requirements of the query for QDAGs. The fingerprint, thus obtained, can be used to predict the runtime behaviour of a query based on queries executed in the past having similar QDAGs. We discuss two approaches to arrive at a fingerprint, their pros and cons and how aspects of both approaches can be combined to improve the predictions. Using a hybrid approach, we demonstrate that we are able to predict runtime behaviour of a QDAG with more than 80% accuracy.

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

↑