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

现代硬件上的多维距离规划

Multidimensional Range Queries on Modern Hardware

Stefan Sprenger, Patrick Schäfer, Ulf Leser

摘要:

多维数据上的范围查询是许多应用程序中数据库工作负载的重要组成部分。它们的执行可以通过使用多维索引结构(MDIS)来加速,例如kd树或R树。对于大多数索引结构,这种方法的有用性取决于查询的选择性,并且常识告诉我们,对于访问超过15%-20%数据集的查询,简单的扫描胜过MDIS。然而,这种智慧在很大程度上是基于近二十年前的评估,这些评估是对磁盘上保存的数据执行的,应用IO优化的数据结构,并使用单核系统。问题是,当多维范围查询(MDRQ)在具有保存所有数据的大型主存储器、多核CPU和数据并行指令集的现代架构上执行时,这种经验法则是否仍然有效。在本文中,我们研究的问题是否以及有多少现代硬件影响索引结构和扫描MDRQ之间的性能比。为此,我们保守地调整了三种流行的MDIS,即R* 树,kd树和VA文件,以利用现代服务器的功能,并将它们的性能与不同风格的并行扫描进行比较,这些并行扫描使用多个(合成和真实世界)分析工作负载,多个(合成和真实世界)数据集的大小,维度和偏斜。我们发现,所有的方法都受益于使用主内存和并行化,但在不同程度上。我们的评估表明,在目前的机器上,扫描应该是经典MDIS的并行版本,即使是非常有选择性的查询青睐。

英文摘要:

Range queries over multidimensional data are an important part of database workloads in many applications. Their execution may be accelerated by using multidimensional index structures (MDIS), such as kd-trees or R-trees. As for most index structures, the usefulness of this approach depends on the selectivity of the queries, and common wisdom told that a simple scan beats MDIS for queries accessing more than 15%-20% of a dataset. However, this wisdom is largely based on evaluations that are almost two decades old, performed on data being held on disks, applying IO-optimized data structures, and using single-core systems. The question is whether this rule of thumb still holds when multidimensional range queries (MDRQ) are performed on modern architectures with large main memories holding all data, multi-core CPUs and data-parallel instruction sets. In this paper, we study the question whether and how much modern hardware influences the performance ratio between index structures and scans for MDRQ. To this end, we conservatively adapted three popular MDIS, namely the R*-tree, the kd-tree, and the VA-file, to exploit features of modern servers and compared their performance to different flavors of parallel scans using multiple (synthetic and real-world) analytical workloads over multiple (synthetic and real-world) datasets of varying size, dimensionality, and skew. We find that all approaches benefit considerably from using main memory and parallelization, yet to varying degrees. Our evaluation indicates that, on current machines, scanning should be favored over parallel versions of classical MDIS even for very selective queries.

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

↑