Making RDBMSs efficient on graph workloads through predefined joins

Author:

Jin Guodong1,Salihoglu Semih2

Affiliation:

1. Renmin University of China

2. University of Waterloo, Canada

Abstract

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. Existing approaches to integrate predefined joins into RDBMSs adopt a strict separation of graph and relational data and processors, where a graph-specific processor uses left-deep and index nested loop joins (INLJ) for a subset of joins. In this paper we study and experimentally evaluate this technique's performance against an alternative technique that is based on using hash joins that use system-level row IDs (RIDs). In this alternative approach, when a join between two tables is predefined to the system, the RIDs of joining tuples are materialized 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 filters that can be passed to scans using sideways information passing (sip), ensuring sequential scans. We further compare these two approaches against: (i) the default value-based joins of an RDBMS; and (ii) using materialized views that can avoid evaluating predefined joins completely and instead replace them with scans. We integrated our alternative approach to DuckDB and call the resulting system GRainDB. Our evaluation demonstrates that existing INJL-based approach can be very efficient when entity relations contain very selective filters. However, GRainDB's approach is more robust and is either competitive with or outperforms the INLJ-based approach across a wide range of settings. We further demonstrate that GRainDB far improves the performance of DuckDB, which uses default value-based joins, 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.

Publisher

Association for Computing Machinery (ACM)

Subject

General Earth and Planetary Sciences,Water Science and Technology,Geography, Planning and Development

Reference44 articles.

1. 2021. DGraph. https://dgraph.io 2021. DGraph. https://dgraph.io

2. 2021. GRainDB. https://github.com/graindb/graindb 2021. GRainDB. https://github.com/graindb/graindb

3. 2021. Neo4j. http://neo4j.com 2021. Neo4j. http://neo4j.com

4. 2021. TigerGraph. http://tigergraph.com 2021. TigerGraph. http://tigergraph.com

5. 2021. Value reuse for auto-increment columns in MySQL. https://dev.mysql.com/doc/refman/8.0/en/delete.html 2021. Value reuse for auto-increment columns in MySQL. https://dev.mysql.com/doc/refman/8.0/en/delete.html

Cited by 2 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Neoj4 and SARIMAX Model for Optimizing Product Placement and Predicting the Shortest Shopping Path;2023 International Conference on Innovation and Intelligence for Informatics, Computing, and Technologies (3ICT);2023-11-20

2. Modern techniques for querying graph-structured relations;Proceedings of the VLDB Endowment;2022-08

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3