Abstract
dc:description.abstractWith the growing volume and complex structures of data, the property graph model has gained great popularity for its ability to represent real-world entities and their relationships. Emerging graph database systems (GDBS) have powerful query interfaces and can answer queries efficiently. However, they lack support for abstraction over graphs or reuse of queries. Views, as studied in relational systems for decades, have the capability to encapsulate query results in a compact manner and speed up future query execution via materialization techniques. As far as we are concerned, there is no GDBS that supports views for these general purposes.This thesis explores the concept of views in graph databases and proposes several implementation strategies for integrating views into the widely-used graph database Neo4j as well as a graph extension of the relational database system PostgreSQL. We begin by classifying views into five distinct types, based on the type of the entities retained within the view and extend Cypher, the native graph query language developed by Neo4j, to define and use each type of view. We then provide a middleware-based and a property-based approach for view materialization in Neo4j, with a broader discussion of implementation considerations to guide future system designs. For graph updates, we also support incremental view maintenance for insertion and deletion of nodes and edges. We develop a set of micro- and macro-benchmarks to evaluate the strengths and limitations of each view type and examine the two implementation strategies in detail. Our results show that complex pipelined queries are inherently well-suited for leveraging views, and query construction using views is significantly more intuitive and efficient. The overhead for view maintenance is capped at 52% of the insertion or deletion operation, making it significantly more efficient than a full recalculation of the view. With materialization of a wise choice of view type, view usage can yield up to a 16x speedup compared to using a baseline query without using views, with a reasonable overhead for declaration
Degree
thesis:*- Name thesis:degree_name
- Master of Science
- Grantor dc:publisher
- McGill University
- Year dc:date.issued
- 2025
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Zheng, Yunjia
- Advisor dc:contributor.advisor
-
- Kemme, Bettina (Supervisor)
Subjects
dc:subject × 1Rights
dc:rights- Statement dc:rights
-
- All items in eScholarship@McGill are protected by copyright with all rights reserved unless otherwise indicated.
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- OCLC
- 1535346955
- Identifier URI
- https://hdl.handle.net/20.500.14905/98559
- Dc Identifier Other
- hyrax:8w32rc16m