Probery:基于概率的大数据不完全查询优化
Probery: A Probability-based Incomplete Query Optimization for Big Data
摘要:
查询优化在大数据管理中,尤其是NoSQL数据库中,受到了广泛的关注。近似查询通过损失准确性来提高查询性能,例如,采样方法为了效率而牺牲查询完整性。与之不同的是,本文提出了一种查询完备性的不确定性,称为查询完备性概率(Probability of query Completeness,简称PC)。PC是指查询结果包含所有满意记录的可能性。例如PC=0.95,它保证100个查询中不超过5个不完整查询,但不保证它们有多不完整。我们权衡PC的查询性能,实验表明,PC的一个小的损失,查询性能的两倍。建议Probery(基于概率的数据查询)采用查询完整性的不确定性,以加速OLTP查询。本文阐述了数据和概率模型,基于概率的数据放置和查询处理,以及基于Apache Drill的Probery实现。在实验中,我们首先证明了完整的查询的百分比是大于给定的PC信心的各种情况下,即PC保证是有效的。然后将Probery与Drill、Impala和Hive在查询性能方面进行了比较。结果表明,基于Drill-based Probery的执行速度与完全查询的Drill一样快,而在可能的完全查询下,平均分别比Drill,Impala和Hive快1.8倍,1.3倍和1.6倍。
英文摘要:
Nowadays, query optimization has been highly concerned in big data management, especially in NoSQL databases. Approximate queries boost query performance by loss of accuracy, for example, sampling approaches trade off query completeness for efficiency. Different from them, we propose an uncertainty of query completeness, called Probability of query Completeness (PC for short). PC refers to the possibility that query results contain all satisfied records. For example PC=0.95, it guarantees that there are no more than 5 incomplete queries among 100 ones, but not guarantees how incomplete they are. We trade off PC for query performance, and experiments show that a small loss of PC doubles query performance. The proposed Probery (PROBability-based data quERY) adopts the uncertainty of query completeness to accelerate OLTP queries. This paper illustrates the data and probability models, the probability based data placement and query processing, and the Apache Drill-based implementation of Probery. In experiments, we first prove that the percentage of complete queries is larger than the given PC confidence for various cases, namely that the PC guarantee is validate. Then Probery is compared with Drill, Impala and Hive in terms of query performance. The results indicate that Drill-based Probery performs as fast as Drill with complete query, while averagely 1.8x, 1.3x and 1.6x faster than Drill, Impala and Hive with possible complete query, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。