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

数据库学习:迈向每次都变得更智能的数据库

Database Learning: Toward a Database that Becomes Smarter Every Time

University of Michigan(密歇根大学)

Yongjoo Park, Ahmad Shahab Tajik, Michael Cafarella, Barzan Mozafari

摘要:

在今天的数据库中,以前的查询答案很少有利于回答未来的查询。据我们所知,我们第一次在近似查询处理(AQP)上下文中改变这种范式。我们做了以下观察:每个查询的答案揭示了对另一个查询答案的某种程度的知识,因为它们的答案来自产生整个数据集的相同的底层分布。利用和提炼这些知识应该使我们能够更分析地回答查询,而不是通过阅读大量的原始数据。此外,处理更多的查询应该不断增强我们对底层分布的了解,从而为未来的查询带来越来越快的响应时间。我们称这种新颖的想法--从过去的查询答案中学习-数据库学习。我们利用最大熵原理来产生答案,这些答案在预期中保证比现有的基于样本的近似更准确。在这个想法的推动下,我们在Spark SQL之上构建了一个查询引擎,称为Verdict。我们进行了广泛的实验,从一个大客户的一个主要的数据库供应商在现实世界中的查询跟踪。我们的研究结果表明,Verdict支持73.7%的查询,与现有的AQP系统相比,在相同的准确度水平下,速度提高了23.0倍。

英文摘要:

In today's databases, previous query answers rarely benefit answering future queries. For the first time, to the best of our knowledge, we change this paradigm in an approximate query processing (AQP) context. We make the following observation: the answer to each query reveals some degree of knowledge about the answer to another query because their answers stem from the same underlying distribution that has produced the entire dataset. Exploiting and refining this knowledge should allow us to answer queries more analytically, rather than by reading enormous amounts of raw data. Also, processing more queries should continuously enhance our knowledge of the underlying distribution, and hence lead to increasingly faster response times for future queries. We call this novel idea---learning from past query answers---Database Learning. We exploit the principle of maximum entropy to produce answers, which are in expectation guaranteed to be more accurate than existing sample-based approximations. Empowered by this idea, we build a query engine on top of Spark SQL, called Verdict. We conduct extensive experiments on real-world query traces from a large customer of a major database vendor. Our results demonstrate that Verdict supports 73.7% of these queries, speeding them up by up to 23.0x for the same accuracy level compared to existing AQP systems.

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

↑