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

基于采样的查询再优化

Sampling-Based Query Re-Optimization

Wentao Wu, Jeffrey F. Naughton, Harneet Singh

摘要:

尽管经过几十年的工作,查询优化器仍然会在“困难”查询上犯错误,因为基数估计不好,这通常是由于数据中多个谓词和相关性的相互作用。在本文中,我们提出了一个低成本的后处理步骤,可以采取一个计划产生的优化器,检测时,它可能已经犯了这样的错误,并采取措施来修复it.Specifically,我们的解决方案是一个基于采样的迭代过程,几乎不需要改变原来的查询优化器或查询评估机制的系统。我们表明,这确实带来了低开销和捕获的情况下,三个广泛使用的优化器(PostgreSQL和两个商业系统),使大的错误。

英文摘要:

Despite of decades of work, query optimizers still make mistakes on "difficult" queries because of bad cardinality estimates, often due to the interaction of multiple predicates and correlations in the data. In this paper, we propose a low-cost post-processing step that can take a plan produced by the optimizer, detect when it is likely to have made such a mistake, and take steps to fix it. Specifically, our solution is a sampling-based iterative procedure that requires almost no changes to the original query optimizer or query evaluation mechanism of the system. We show that this indeed imposes low overhead and catches cases where three widely used optimizers (PostgreSQL and two commercial systems) make large errors.

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

↑