arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1901.02049cs.DB
收藏

用于查询工作负载重新优化的引导式自动学习

Guided Automated Learning for query workload re-Optimization

Guilherme Damasio, Vincent Corvinelli, Parke Godfrey, Piotr Mierzejewski, Alexandar Mihaylov, Jaroslaw Szlichta, Calisto Zuzarte

摘要:

查询优化是数据库系统的一个标志,它使当今应用程序的复杂SQL查询能够有效地运行。当业务查询和模式中的逻辑微妙之处绕过查询优化器时,查询优化器通常无法找到最佳计划。当查询的运行成本超过可行或保证时,通常通过分析查询的执行计划(QEP)与专家协商手动执行性能问题。然而,这是一个非常耗时、易于人为出错且成本高昂的过程。GALO是一个自动化这一过程的新系统。该工具在离线学习阶段自动学习查询计划中重复出现的问题模式,以构建计划重写补救措施的知识库。然后,它使用在线知识库来重新优化排队等待执行的查询,以提高性能,通常是相当大的。GALO的知识库建立在RDF和SPARQL(W3C图形数据库标准)之上,非常适合于操作和查询SQL查询计划,而SQL查询计划本身就是图形。GALO作为查询重写和基于成本的优化之后的第三层重新优化,作为查询计划重写。由于知识库不与所提供的QEP的上下文相关联,因此在重新优化阶段,表和列名会自动匹配。因此,在特定查询工作负载上学习的问题模式可以应用于其他查询工作负载。GALO的知识库也是数据库专家调试查询性能问题的宝贵工具,可以跟踪已知问题和解决方案,并通过开发团队的新调优技术改进优化器。我们证明了我们的技术在合成TPC-DS和真正的IBM客户端查询工作负载的有效性的实验研究。

英文摘要:

Query optimization is a hallmark of database systems enabling complex SQL queries of today's applications to be run efficiently. The query optimizer often fails to find the best plan, when logical subtleties in business queries and schemas circumvent it. When a query runs more expensively than is viable or warranted, determination of the performance issues is usually performed manually in consultation with experts through the analysis of query's execution plan (QEP). However, this is an excessively time consuming, human error-prone, and costly process. GALO is a novel system that automates this process. The tool automatically learns recurring problem patterns in query plans over workloads in an offline learning phase, to build a knowledge base of plan-rewrite remedies. It then uses the knowledge base online to re-optimize queries queued for execution to improve performance, often quite drastically. GALO's knowledge base is built on RDF and SPARQL, W3C graph database standards, which is well suited for manipulating and querying over SQL query plans, which are graphs themselves. GALO acts as a third-tier of re-optimization, after query rewrite and cost-based optimization, as a query plan rewrite. Since the knowledge base is not tied to the context of supplied QEPs, table and column names are matched automatically during the re-optimization phase. Thus, problem patterns learned over a particular query workload can be applied in other query workloads. GALO's knowledge base is also an invaluable tool for database experts to debug query performance issues by tracking to known issues and solutions as well as refining the optimizer with new tuned techniques by the development team. We demonstrate an experimental study of the effectiveness of our techniques over synthetic TPC-DS and real IBM client query workloads.

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

↑