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

通过预定义连接使RDBMS在图形工作负载上高效

Making RDBMSs Efficient on Graph Workloads Through Predefined Joins

Guodong Jin, Semih Salihoglu

摘要:

本机图数据库管理系统(GDBMS)中的联接被预定义为系统的边,这些边在邻接列表索引中被索引并用作指针。这与RDBMS中基于值的连接形成了对比,并且可能比基于值的连接性能更高,并且导致研究人员研究将预定义连接直接集成到RDBMS中的方法。现有的方法采用图和关系数据以及处理器的严格分离,其中特定于图的处理器使用左深和索引嵌套循环连接作为连接子集。这可能是次优的,并且可能导致在某些查询中对数据的非顺序扫描。我们提出了一个纯关系的方法来集成预定义的连接列RDBMS,使用行ID(RID)的元组作为指针。用户可以在任意两个表之间创建相等连接,这将导致在扩展表中具体化RID,也可以在RID索引中具体化RID。我们没有直接使用RID索引来执行连接,而是主要在散列连接中使用它来生成半连接过滤器,这些过滤器可以通过侧向信息传递来进行扫描,从而确保顺序扫描。在某些设置中,我们还使用RID索引来减少查询计划中的连接数量。我们的方法不引入任何特定于图的系统组件,可以在任何连接计划上执行预定义的连接,并且可以提高包含可以预定义的相等连接的任何工作负载的性能。我们将我们的方法集成到DuckDB中,并调用生成的系统{ \em GRainDB}。我们证明了GRainDB大大提高了DuckDB在关系和图形工作负载上的性能,具有大量的多对多连接,使其与最先进的GDBMS竞争,并且不会产生重大的开销。

英文摘要:

Joins in native graph database management systems (GDBMSs) are predefined to the system as edges, which are indexed in adjacency list indices and serve as pointers. This contrasts with and can be more performant than value-based joins in RDBMSs and has lead researchers to investigate ways to integrate predefined joins directly into RDBMSs. Existing approaches adopt a strict separation of graph and relational data and processors, where a graph-specific processor uses left-deep and index nested loop joins for a subset of joins. This may be suboptimal, and may lead to non-sequential scans of data in some queries. We propose a purely relational approach to integrate predefined joins in columnar RDBMSs that uses row IDs (RIDs) of tuples as pointers. Users can predefine equality joins between any two tables, which leads to materializing RIDs in extended tables and optionally in RID indices. Instead of using the RID index to perform the join directly, we use it primarily in hash joins to generate semi-join filters that can be passed to scans using sideways information passing, ensuring sequential scans. In some settings, we also use RID indices to reduce the number of joins in query plans. Our approach does not introduce any graph-specific system components, can execute predefined joins on any join plan, and can improve performance on any workload that contains equality joins that can be predefined. We integrated our approach to DuckDB and call the resulting system {\em GRainDB}. We demonstrate that GRainDB far improves the performance of DuckDB on relational and graph workloads with large many-to-many joins, making it competitive with a state-of-the-art GDBMS, and incurs no major overheads otherwise.

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

↑