arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1608.02611cs.DB
收藏

OptMark:查询优化器基准测试工具包

OptMark: A Toolkit for Benchmarking Query Optimizers

Zhan Li, Olga Papaemmanouil, Mitch Cherniack

摘要:

查询优化器一直被认为是数据库引擎中最复杂的组件之一,而对优化器质量的评估仍然是一项具有挑战性的任务。事实上,现有的数据库引擎性能基准(如TPC基准)产生查询运行时系统的性能评估,而不是其查询优化器。为了应对这一挑战,本文介绍了OptMark,一个工具包,用于评估质量的查询优化器。OptMark旨在提供许多理想的属性。首先,它将优化器的质量与其底层执行引擎的质量相结合。其次,它独立地评估优化器的有效性(即,所选计划的质量)及其效率(即,优化时间)。OptMark还包括一个通用的基准测试工具包,它对希望使用它的DBMS具有最小的侵入性。任何DBMS都可以提供一个简单API的系统特定实现,该API允许OptMark运行并为特定系统生成基准测试分数。本文讨论了我们提出的用于评估优化器质量、基准测试的设计以及工具包的API和功能的指标。我们已经在开源MySQL引擎和两个商业数据库系统上实现了OptMark。使用这些实现,我们能够根据TPC-DS基准查询来评估这三个系统上的优化器的质量。

英文摘要:

Query optimizers have long been considered as among the most complex components of a database engine, while the assessment of an optimizer's quality remains a challenging task. Indeed, existing performance benchmarks for database engines (like TPC benchmarks) produce a performance assessment of the query runtime system rather than its query optimizer. To address this challenge, this paper introduces OptMark, a toolkit for evaluating the quality of a query optimizer. OptMark is designed to offer a number of desirable properties. First, it decouples the quality of an optimizer from the quality of its underlying execution engine. Second it evaluates independently both the effectiveness of an optimizer (i.e., quality of the chosen plans) and its efficiency (i.e., optimization time). OptMark includes also a generic benchmarking toolkit that is minimum invasive to the DBMS that wishes to use it. Any DBMS can provide a system-specific implementation of a simple API that allows OptMark to run and generate benchmark scores for the specific system. This paper discusses the metrics we propose for evaluating an optimizer's quality, the benchmark's design and the toolkit's API and functionality. We have implemented OptMark on the open-source MySQL engine as well as two commercial database systems. Using these implementations we are able to assess the quality of the optimizers on these three systems based on the TPC-DS benchmark queries.

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

↑