Saved in:
Bibliographic Details
Main Authors: Xu, Chaijun, Wei, Xingdi, Zhang, Yu, Li, Kaiwei, Zhu, Xiaowei, Huang, Ke, Wang, Tao, Qi, Shipeng
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2411.18847
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915039439486976
author Xu, Chaijun
Wei, Xingdi
Zhang, Yu
Li, Kaiwei
Zhu, Xiaowei
Huang, Ke
Wang, Tao
Qi, Shipeng
author_facet Xu, Chaijun
Wei, Xingdi
Zhang, Yu
Li, Kaiwei
Zhu, Xiaowei
Huang, Ke
Wang, Tao
Qi, Shipeng
contents Graph databases are getting more and more attention in the highly interconnected data domain, and the demand for efficient querying of big data is increasing. We noticed that there are duplicate patterns in graph database queries, and the results of these patterns can be stored as materialized views first, which can speed up the query rate. So we propose materialized views on property graphs, including three parts: view creation, view maintenance, and query optimization using views, and we propose for the first time an efficient templated view maintenance method for containing variable-length edges, which can be applied to multiple graph databases. In order to verify the effect of materialized views, we prototype on TuGraph and experiment on both TuGraph and Neo4j. The experiment results show that our query optimization on read statements is much higher than the additional view maintenance cost brought by write statements. The speedup ratio of the whole workload reaches up to 28.71x, and the speedup ratio of a single query reaches up to nearly 100x.
format Preprint
id arxiv_https___arxiv_org_abs_2411_18847
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle MV4PG: Materialized Views for Property Graphs
Xu, Chaijun
Wei, Xingdi
Zhang, Yu
Li, Kaiwei
Zhu, Xiaowei
Huang, Ke
Wang, Tao
Qi, Shipeng
Databases
Graph databases are getting more and more attention in the highly interconnected data domain, and the demand for efficient querying of big data is increasing. We noticed that there are duplicate patterns in graph database queries, and the results of these patterns can be stored as materialized views first, which can speed up the query rate. So we propose materialized views on property graphs, including three parts: view creation, view maintenance, and query optimization using views, and we propose for the first time an efficient templated view maintenance method for containing variable-length edges, which can be applied to multiple graph databases. In order to verify the effect of materialized views, we prototype on TuGraph and experiment on both TuGraph and Neo4j. The experiment results show that our query optimization on read statements is much higher than the additional view maintenance cost brought by write statements. The speedup ratio of the whole workload reaches up to 28.71x, and the speedup ratio of a single query reaches up to nearly 100x.
title MV4PG: Materialized Views for Property Graphs
topic Databases
url https://arxiv.org/abs/2411.18847