arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.08702cs.DBcs.PF
收藏

找到第二春:利用面向列处理加速 RDBMS 中的图遍历查询

Finding a Second Wind: Speeding Up Graph Traversal Queries in RDBMSs Using Column-Oriented Processing

Mikhail Firsov, Michael Polyntsov, Kirill Smirnov, George Chernishev

AI总结:

针对 RDBMS 中递归图遍历查询,本文利用列存延迟物化与数据位置设计 Volcano 风格算子,并在 PosDB 中验证,较 PostgreSQL 最高实现 6 倍加速。

摘要:

递归查询和递归派生表构成 SQL 标准的重要组成部分。对于许多依赖图或层次结构遍历的实际应用而言,高效处理这类查询非常重要。支持位置的列存为改善此类查询的运行时间提供了新的机会。这类系统允许引擎在其核心内部显式使用数据位置(行 ID),从而能够实现查询计划算子的新颖高效实现。\n在本文中,我们提出一种显著加速 RDBMS 内部递归查询处理的方法。其核心思想是利用列存技术的一个特定方面(延迟物化),使查询引擎能够在查询执行期间操作数据位置。基于此,我们提出两组旨在处理不同查询情形的 Volcano 风格算子。\n为验证我们的想法,我们已在 PosDB(一个支持 SQL 的 RDBMS 列存系统)中实现所提方法。我们通过与 PostgreSQL 比较,实验性证明该方法的可行性。实验表明,对于广度优先搜索:1)我们基于位置的方法产生比 PostgreSQL 最高快 6 倍的结果;2)我们基于元组的方法在使用一种特殊重写技术时仅带来 3 倍提升,但可在更多情形下工作;3)两种方法都无法在行存中被高效模拟。

英文摘要:

Recursive queries and recursive derived tables constitute an important part of the SQL standard. Their efficient processing is important for many real-life applications that rely on graph or hierarchy traversal. Position-enabled column-stores offer a novel opportunity to improve run times for this type of queries. Such systems allow the engine to explicitly use data positions (row ids) inside its core and thus, enable novel efficient implementations of query plan operators. In this paper, we present an approach that significantly speeds up recursive query processing inside RDBMSes. Its core idea is to employ a particular aspect of column-store technology (late materialization) which enables the query engine to manipulate data positions during query execution. Based on it, we propose two sets of Volcano-style operators intended to process different query cases. In order validate our ideas, we have implemented the proposed approach in PosDB, an RDBMS column-store with SQL support. We experimentally demonstrate the viability of our approach by providing a comparison with PostgreSQL. Experiments show that for breadth-first search: 1) our position-based approach yields up to 6x better results than PostgreSQL, 2) our tuple-based one results in only 3x improvement when using a special rewriting technique, but it can work in a larger number of cases, and 3) both approaches can't be emulated in row-stores efficiently.

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

↑